Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all
Unified · Split
| @@ -43,6 +43,7 @@ · 42 unmodified lines | |||
| 43 | #include <NetworkAccessManager.h> | 43 | #include <NetworkAccessManager.h> |
| 44 | #include <PathUtils.h> | 44 | #include <PathUtils.h> |
| 45 | #include <ResourceScriptingInterface.h> | 45 | #include <ResourceScriptingInterface.h> |
| 46 | #include <UserActivityLoggerScriptingInterface.h> | ||
| 46 | #include <NodeList.h> | 47 | #include <NodeList.h> |
| 47 | #include <ScriptAvatarData.h> | 48 | #include <ScriptAvatarData.h> |
| 48 | #include <udt/PacketHeaders.h> | 49 | #include <udt/PacketHeaders.h> |
| @@ -677,6 +678,8 @@ void ScriptEngine::init() { · 628 unmodified lines | |||
| 677 | registerGlobalObject("Model", new ModelScriptingInterface(this)); | 678 | registerGlobalObject("Model", new ModelScriptingInterface(this)); |
| 678 | qScriptRegisterMetaType(this, meshToScriptValue, meshFromScriptValue); | 679 | qScriptRegisterMetaType(this, meshToScriptValue, meshFromScriptValue); |
| 679 | qScriptRegisterMetaType(this, meshesToScriptValue, meshesFromScriptValue); | 680 | qScriptRegisterMetaType(this, meshesToScriptValue, meshesFromScriptValue); |
| 681 | |||
| 682 | registerGlobalObject("UserActivityLogger", DependencyManager::get<UserActivityLoggerScriptingInterface>().data()); | ||
| 680 | } | 683 | } |
| 681 | 684 | ||
| 682 | void ScriptEngine::registerValue(const QString& valueName, QScriptValue value) { | 685 | void ScriptEngine::registerValue(const QString& valueName, QScriptValue value) { |