Fixed infinite loop and incorrect playback setting for Animator

This commit is contained in:
Kah Wei 2023-03-09 14:46:06 +08:00
parent 3d6bfaa119
commit ac971f0945
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}
}