Implemented Animation Clip asset and animation controller #410
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue