fix AC crash with no controller scripting interface

This commit is contained in:
Stephen Birarda 2015-06-22 11:56:07 -07:00
parent edf024dff8
commit ff21c22245

View file

@ -317,7 +317,10 @@ void ScriptEngine::init() {
registerAnimationTypes(this); registerAnimationTypes(this);
registerAvatarTypes(this); registerAvatarTypes(this);
registerAudioMetaTypes(this); registerAudioMetaTypes(this);
_controllerScriptingInterface->registerControllerTypes(this);
if (_controllerScriptingInterface) {
_controllerScriptingInterface->registerControllerTypes(this);
}
qScriptRegisterMetaType(this, EntityItemPropertiesToScriptValue, EntityItemPropertiesFromScriptValueHonorReadOnly); qScriptRegisterMetaType(this, EntityItemPropertiesToScriptValue, EntityItemPropertiesFromScriptValueHonorReadOnly);
qScriptRegisterMetaType(this, EntityItemIDtoScriptValue, EntityItemIDfromScriptValue); qScriptRegisterMetaType(this, EntityItemIDtoScriptValue, EntityItemIDfromScriptValue);