Add AnimationCache to Agent

This commit is contained in:
Delamare2112 2017-03-29 12:54:25 -07:00 committed by Ryan Huffman
parent 4f7cbd5b7c
commit db11c40a08

View file

@ -403,6 +403,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);