Merge pull request from huffman/fix/agent-animation-cache

Add AnimationCache to agent scripts
This commit is contained in:
Anthony Thibault 2017-03-28 20:15:21 -07:00 committed by GitHub
commit 069ebaedf0

View file

@ -419,6 +419,7 @@ void Agent::executeScript() {
_scriptEngine->registerGlobalObject("Agent", this);
_scriptEngine->registerGlobalObject("SoundCache", DependencyManager::get<SoundCache>().data());
_scriptEngine->registerGlobalObject("AnimationCache", DependencyManager::get<AnimationCache>().data());
QScriptValue webSocketServerConstructorValue = _scriptEngine->newFunction(WebSocketServerClass::constructor);
_scriptEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue);