Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -317,7 +317,10 @@ void ScriptEngine::init() { · 316 unmodified lines | ||
| 317 | 317 | registerAnimationTypes(this); |
| 318 | 318 | registerAvatarTypes(this); |
| 319 | 319 | registerAudioMetaTypes(this); |
| 320 | − _controllerScriptingInterface->registerControllerTypes(this); | |
| 320 | + | |
| 321 | + if (_controllerScriptingInterface) { | |
| 322 | + _controllerScriptingInterface->registerControllerTypes(this); | |
| 323 | + } | |
| 321 | 324 | |
| 322 | 325 | qScriptRegisterMetaType(this, EntityItemPropertiesToScriptValue, EntityItemPropertiesFromScriptValueHonorReadOnly); |
| 323 | 326 | qScriptRegisterMetaType(this, EntityItemIDtoScriptValue, EntityItemIDfromScriptValue); |