Fixed boneless TRS animations

This commit is contained in:
HarrievG 2022-09-26 12:02:30 +02:00 committed by Robert Beckebans
parent d8f7b72d74
commit 28730655a1

View file

@ -822,11 +822,11 @@ idFile_Memory* idRenderModelGLTF::GetAnimBin( idStr animName , const ID_TIME_T
q = blenderToDoomTransform.ToMat3().ToQuat() * animBones[i][b].rotation;
//if( animBones[i].Num() == 1 )
//{
// this is not hit
// q = -animBones[i][b].rotation;
//}
if( animBones[i].Num() == 1 )
{
// this is only hit for single bone or boneless (root is generated!) animations
q = blenderToDoomTransform.ToMat3().ToQuat() * -animBones[i][b].rotation;
}
}
else
{