Implemented Animation Clip asset and animation controller #410
|
@ -257,7 +257,7 @@ namespace SHADE
|
|||
return;
|
||||
|
||||
// Play the clip
|
||||
updatePoseWithClip(clip, currPlaybackTime);
|
||||
updatePoseWithClip(clip, playbackTime);
|
||||
}
|
||||
void SHAnimatorComponent::updatePoseWithClip(Handle<SHAnimationClip> clip, float poseTime)
|
||||
{
|
||||
|
@ -286,7 +286,6 @@ namespace SHADE
|
|||
|
||||
// Apply transformations to this node
|
||||
const int BONE_MTX_IDX = rig->GetNodeIndex(node);
|
||||
std::optional<SHVec3> position;
|
||||
if (BONE_MTX_IDX >= 0)
|
||||
{
|
||||
boneMatrices[BONE_MTX_IDX] = node->OffsetMatrix * transformMatrix;
|
||||
|
|
Loading…
Reference in New Issue