mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 03:32:31 +02:00
Last state for all node types
This commit is contained in:
parent
473af995d6
commit
3a22db0a13
1 changed files with 1 additions and 3 deletions
|
@ -168,9 +168,7 @@ void AnimRandomSwitch::addState(RandomSwitchState::Pointer randomState) {
|
|||
|
||||
void AnimRandomSwitch::switchRandomState(const AnimVariantMap& animVars, const AnimContext& context, RandomSwitchState::Pointer desiredState, bool shouldInterp) {
|
||||
auto nextStateNode = _children[desiredState->getChildIndex()];
|
||||
if (nextStateNode->getType() == AnimNodeType::Clip) {
|
||||
_lastPlayedState = nextStateNode->getID();
|
||||
}
|
||||
_lastPlayedState = nextStateNode->getID();
|
||||
if (shouldInterp) {
|
||||
|
||||
const float FRAMES_PER_SECOND = 30.0f;
|
||||
|
|
Loading…
Reference in a new issue