Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 36 files). Show all
Unified · Split
| @@ -73,6 +73,8 @@ · 72 unmodified lines | ||
| 73 | 73 | #include "WebSocketClass.h" |
| 74 | 74 | #include "RecordingScriptingInterface.h" |
| 75 | 75 | #include "ScriptEngines.h" |
| 76 | +#include "ModelScriptingInterface.h" | |
| 77 | + | |
| 76 | 78 | |
| 77 | 79 | #include <Profile.h> |
| 78 | 80 | |
| @@ -709,6 +711,10 @@ void ScriptEngine::init() { · 630 unmodified lines | ||
| 709 | 711 | |
| 710 | 712 | registerGlobalObject("DebugDraw", &DebugDraw::getInstance()); |
| 711 | 713 | |
| 714 | + registerGlobalObject("Model", new ModelScriptingInterface(this)); | |
| 715 | + qScriptRegisterMetaType(this, meshToScriptValue, meshFromScriptValue); | |
| 716 | + qScriptRegisterMetaType(this, meshesToScriptValue, meshesFromScriptValue); | |
| 717 | + | |
| 712 | 718 | registerGlobalObject("UserActivityLogger", DependencyManager::get<UserActivityLoggerScriptingInterface>().data()); |
| 713 | 719 | } |
| 714 | 720 | |