This commit is contained in:
Howard Stearns 2015-10-29 19:21:24 -07:00
parent 5d1ba90f1e
commit dcc173c93a

View file

@ -615,7 +615,7 @@ void Rig::updateAnimationStateHandlers() { // called on avatar update thread (wh
int identifier = data.key(); int identifier = data.key();
StateHandler& value = data.value(); StateHandler& value = data.value();
QScriptValue& function = value.function; QScriptValue& function = value.function;
auto handleResult = [this, identifier](QScriptValue result) { auto handleResult = [this, identifier](QScriptValue result) { // called in script thread to get the result back to us.
animationStateHandlerResult(identifier, result); animationStateHandlerResult(identifier, result);
}; };
// invokeMethod makes a copy of the args, and copies of AnimVariantMap do copy the underlying map, so this will correctly capture // invokeMethod makes a copy of the args, and copies of AnimVariantMap do copy the underlying map, so this will correctly capture