mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-16 06:00:28 +02:00
fixed the debug state info updating
This commit is contained in:
parent
6d9e4188eb
commit
bac5cf9bbb
1 changed files with 8 additions and 5 deletions
|
@ -104,18 +104,21 @@ const AnimPoseVec& AnimRandomSwitch::evaluate(const AnimVariantMap& animVars, co
|
||||||
_prevPoses.clear();
|
_prevPoses.clear();
|
||||||
_nextPoses.clear();
|
_nextPoses.clear();
|
||||||
}
|
}
|
||||||
if (_duringInterp) {
|
|
||||||
// hack: add previoius state to debug alpha map, with parens around it's name.
|
|
||||||
context.setDebugAlpha(QString("(%1)").arg(_previousState->getID()), 1.0f - _alpha, AnimNodeType::Clip);
|
|
||||||
}
|
}
|
||||||
}else {
|
|
||||||
|
if (!_duringInterp){
|
||||||
context.setDebugAlpha(_currentState->getID(), parentDebugAlpha, _children[_currentState->getChildIndex()]->getType());
|
context.setDebugAlpha(_currentState->getID(), parentDebugAlpha, _children[_currentState->getChildIndex()]->getType());
|
||||||
_poses = currentStateNode->evaluate(animVars, context, dt, triggersOut);
|
_poses = currentStateNode->evaluate(animVars, context, dt, triggersOut);
|
||||||
}
|
}
|
||||||
|
|
||||||
_framesActive = context.getFramesAnimatedThisSession();
|
_framesActive = context.getFramesAnimatedThisSession();
|
||||||
processOutputJoints(triggersOut);
|
processOutputJoints(triggersOut);
|
||||||
|
|
||||||
context.addStateMachineInfo(_id, _currentState->getID(), _previousState->getID(), _duringInterp, _alpha);
|
context.addStateMachineInfo(_id, _currentState->getID(), _previousState->getID(), _duringInterp, _alpha);
|
||||||
|
if (_duringInterp) {
|
||||||
|
// hack: add previoius state to debug alpha map, with parens around it's name.
|
||||||
|
context.setDebugAlpha(QString("(%1)").arg(_previousState->getID()), 1.0f - _alpha, AnimNodeType::Clip);
|
||||||
|
}
|
||||||
|
|
||||||
return _poses;
|
return _poses;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue