adds JavaScript API for getting the current animationDetails (state) for avatar animations
Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 8 files). Show all
Unified · Split
| @@ -256,6 +256,8 @@ void ScriptEngine::init() { · 255 unmodified lines | ||
| 256 | 256 | |
| 257 | 257 | qScriptRegisterMetaType(&_engine, injectorToScriptValue, injectorFromScriptValue); |
| 258 | 258 | |
| 259 | + qScriptRegisterMetaType(&_engine, animationDetailsToScriptValue, animationDetailsFromScriptValue); | |
| 260 | + | |
| 259 | 261 | registerGlobalObject("Script", this); |
| 260 | 262 | registerGlobalObject("Audio", &_audioScriptingInterface); |
| 261 | 263 | registerGlobalObject("Controller", _controllerScriptingInterface); |