mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-01 23:20:44 +00:00
Added long neck GCC compiler workaround from dhewm3
This commit is contained in:
parent
42cd8afdba
commit
98093a4e8d
1 changed files with 10 additions and 8 deletions
|
@ -5490,19 +5490,21 @@ bool idAnimator::GetJointLocalTransform( jointHandle_t jointHandle, int currentT
|
|||
// FIXME: overkill
|
||||
CreateFrame( currentTime, false );
|
||||
|
||||
if( jointHandle > 0 )
|
||||
{
|
||||
idJointMat m = joints[ jointHandle ];
|
||||
m /= joints[ modelJoints[ jointHandle ].parentNum ];
|
||||
offset = m.ToVec3();
|
||||
axis = m.ToMat3();
|
||||
}
|
||||
else
|
||||
// RB: long neck GCC compiler bug workaround from dhewm3 ...
|
||||
if( jointHandle == 0 )
|
||||
{
|
||||
offset = joints[ jointHandle ].ToVec3();
|
||||
axis = joints[ jointHandle ].ToMat3();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
idJointMat m = joints[ jointHandle ];
|
||||
m /= joints[ modelJoints[ jointHandle ].parentNum ];
|
||||
offset = m.ToVec3();
|
||||
axis = m.ToMat3();
|
||||
// RB end
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue