Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -278,8 +278,8 @@ void ScriptEngine::init() { · 277 unmodified lines | ||
| 278 | 278 | QScriptValue localVoxelsValue = scriptValueFromQMetaObject<LocalVoxels>(); |
| 279 | 279 | globalObject().setProperty("LocalVoxels", localVoxelsValue); |
| 280 | 280 | |
| 281 | − QScriptValue audioEffectOptionsConstructorValue = _engine.newFunction(AudioEffectOptions::constructor); | |
| 282 | − _engine.globalObject().setProperty("AudioEffectOptions", audioEffectOptionsConstructorValue); | |
| 281 | + QScriptValue audioEffectOptionsConstructorValue = newFunction(AudioEffectOptions::constructor); | |
| 282 | + globalObject().setProperty("AudioEffectOptions", audioEffectOptionsConstructorValue); | |
| 283 | 283 | |
| 284 | 284 | qScriptRegisterMetaType(this, injectorToScriptValue, injectorFromScriptValue); |
| 285 | 285 | qScriptRegisterMetaType(this, inputControllerToScriptValue, inputControllerFromScriptValue); |