mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-17 17:06:19 +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) {
|
void AnimRandomSwitch::switchRandomState(const AnimVariantMap& animVars, const AnimContext& context, RandomSwitchState::Pointer desiredState, bool shouldInterp) {
|
||||||
auto nextStateNode = _children[desiredState->getChildIndex()];
|
auto nextStateNode = _children[desiredState->getChildIndex()];
|
||||||
if (nextStateNode->getType() == AnimNodeType::Clip) {
|
_lastPlayedState = nextStateNode->getID();
|
||||||
_lastPlayedState = nextStateNode->getID();
|
|
||||||
}
|
|
||||||
if (shouldInterp) {
|
if (shouldInterp) {
|
||||||
|
|
||||||
const float FRAMES_PER_SECOND = 30.0f;
|
const float FRAMES_PER_SECOND = 30.0f;
|
||||||
|
|
Loading…
Reference in a new issue