Fixed animator component always using manual mode playback time

This commit is contained in:
Kah Wei 2023-03-09 15:08:38 +08:00
parent ab2f3e395b
commit baed0bec0b
1 changed files with 1 additions and 2 deletions

View File

@ -257,7 +257,7 @@ namespace SHADE
return; return;
// Play the clip // Play the clip
updatePoseWithClip(clip, currPlaybackTime); updatePoseWithClip(clip, playbackTime);
} }
void SHAnimatorComponent::updatePoseWithClip(Handle<SHAnimationClip> clip, float poseTime) void SHAnimatorComponent::updatePoseWithClip(Handle<SHAnimationClip> clip, float poseTime)
{ {
@ -286,7 +286,6 @@ namespace SHADE
// Apply transformations to this node // Apply transformations to this node
const int BONE_MTX_IDX = rig->GetNodeIndex(node); const int BONE_MTX_IDX = rig->GetNodeIndex(node);
std::optional<SHVec3> position;
if (BONE_MTX_IDX >= 0) if (BONE_MTX_IDX >= 0)
{ {
boneMatrices[BONE_MTX_IDX] = node->OffsetMatrix * transformMatrix; boneMatrices[BONE_MTX_IDX] = node->OffsetMatrix * transformMatrix;