Fixed infinite loop and incorrect playback setting for Animator
This commit is contained in:
parent
3d6bfaa119
commit
ac971f0945
|
@ -33,7 +33,7 @@ namespace SHADE
|
|||
/*-----------------------------------------------------------------------------------*/
|
||||
void SHAnimatorComponent::Play()
|
||||
{
|
||||
isPlaying = false;
|
||||
isPlaying = true;
|
||||
playOnce = false;
|
||||
}
|
||||
|
||||
|
@ -293,9 +293,9 @@ namespace SHADE
|
|||
}
|
||||
|
||||
// Apply pose to children
|
||||
for (auto& child : node->Children)
|
||||
for (auto child : node->Children)
|
||||
{
|
||||
updatePoseWithClip(poseTime, rawAnimData, node, transformMatrix);
|
||||
updatePoseWithClip(poseTime, rawAnimData, child, transformMatrix);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue