Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all
Unified · Split
| @@ -74,6 +74,7 @@ · 73 unmodified lines | ||
| 74 | 74 | #include "WebSocketClass.h" |
| 75 | 75 | #include "RecordingScriptingInterface.h" |
| 76 | 76 | #include "ScriptEngines.h" |
| 77 | +#include "StackTestScriptingInterface.h" | |
| 77 | 78 | #include "ModelScriptingInterface.h" |
| 78 | 79 | |
| 79 | 80 | |
| @@ -748,6 +749,10 @@ void ScriptEngine::init() { · 668 unmodified lines | ||
| 748 | 749 | qScriptRegisterMetaType(this, meshesToScriptValue, meshesFromScriptValue); |
| 749 | 750 | |
| 750 | 751 | registerGlobalObject("UserActivityLogger", DependencyManager::get<UserActivityLoggerScriptingInterface>().data()); |
| 752 | + | |
| 753 | +#if DEV_BUILD || PR_BUILD | |
| 754 | + registerGlobalObject("StackTest", new StackTestScriptingInterface()); | |
| 755 | +#endif | |
| 751 | 756 | } |
| 752 | 757 | |
| 753 | 758 | void ScriptEngine::registerValue(const QString& valueName, QScriptValue value) { |