Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all
Unified · Split
| @@ -517,10 +517,6 @@ void ScriptEngine::init() { · 516 unmodified lines | |||
| 517 | // constants | 517 | // constants |
| 518 | globalObject().setProperty("TREE_SCALE", newVariant(QVariant(TREE_SCALE))); | 518 | globalObject().setProperty("TREE_SCALE", newVariant(QVariant(TREE_SCALE))); |
| 519 | 519 | ||
| 520 | auto scriptingInterface = DependencyManager::get<controller::ScriptingInterface>(); | ||
| 521 | registerGlobalObject("Controller", scriptingInterface.data()); | ||
| 522 | UserInputMapper::registerControllerTypes(this); | ||
| 523 | |||
| 524 | auto recordingInterface = DependencyManager::get<RecordingScriptingInterface>(); | 520 | auto recordingInterface = DependencyManager::get<RecordingScriptingInterface>(); |
| 525 | registerGlobalObject("Recording", recordingInterface.data()); | 521 | registerGlobalObject("Recording", recordingInterface.data()); |
| 526 | 522 | ||