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