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 | 43 | #include <NetworkAccessManager.h> |
| 44 | 44 | #include <PathUtils.h> |
| 45 | 45 | #include <ResourceScriptingInterface.h> |
| 46 | +#include <UserActivityLoggerScriptingInterface.h> | |
| 46 | 47 | #include <NodeList.h> |
| 47 | 48 | #include <ScriptAvatarData.h> |
| 48 | 49 | #include <udt/PacketHeaders.h> |
| @@ -677,6 +678,8 @@ void ScriptEngine::init() { · 628 unmodified lines | ||
| 677 | 678 | registerGlobalObject("Model", new ModelScriptingInterface(this)); |
| 678 | 679 | qScriptRegisterMetaType(this, meshToScriptValue, meshFromScriptValue); |
| 679 | 680 | qScriptRegisterMetaType(this, meshesToScriptValue, meshesFromScriptValue); |
| 681 | + | |
| 682 | + registerGlobalObject("UserActivityLogger", DependencyManager::get<UserActivityLoggerScriptingInterface>().data()); | |
| 680 | 683 | } |
| 681 | 684 | |
| 682 | 685 | void ScriptEngine::registerValue(const QString& valueName, QScriptValue value) { |