Added long neck GCC compiler workaround from dhewm3

This commit is contained in:
Robert Beckebans 2013-01-14 00:24:11 +01:00
parent 42cd8afdba
commit 98093a4e8d

View file

@ -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;
}