mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Fixed boneless TRS animations
This commit is contained in:
parent
d8f7b72d74
commit
28730655a1
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue