Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 6 files). Show all
Unified · Split
| @@ -99,6 +99,7 @@ void ScriptEngine::init() { · 98 unmodified lines | ||
| 99 | 99 | |
| 100 | 100 | // register meta-type for glm::vec3 conversions |
| 101 | 101 | registerMetaTypes(&_engine); |
| 102 | + qScriptRegisterMetaType(&_engine, ParticlePropertiesToScriptValue, ParticlePropertiesFromScriptValue); | |
| 102 | 103 | |
| 103 | 104 | QScriptValue agentValue = _engine.newQObject(this); |
| 104 | 105 | _engine.globalObject().setProperty("Agent", agentValue); |