Fix importing model animations curves with scaled local bone TransformBuffer

#565
This commit is contained in:
Wojtek Figat
2021-07-09 12:06:47 +02:00
parent a928032f44
commit a59429c954

View File

@@ -918,8 +918,7 @@ void ExtractKeyframePosition(const ofbx::Object* bone, ofbx::Vec3& trans, const
void ExtractKeyframeRotation(const ofbx::Object* bone, ofbx::Vec3& trans, const Frame& localFrame, Quaternion& keyframe)
{
const Matrix frameTrans = ToMatrix(bone->evalLocal(localFrame.Translation, trans, localFrame.Scaling));
//frameTrans.NormalizeScale();
const Matrix frameTrans = ToMatrix(bone->evalLocal(localFrame.Translation, trans, {1.0, 1.0, 1.0 }));
Quaternion::RotationMatrix(frameTrans, keyframe);
}