Created
January 13, 2013 21:25
-
-
Save DanielGibson/4526283 to your computer and use it in GitHub Desktop.
try to fix longnecks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/neo/d3xp/anim/Anim_Blend.cpp b/neo/d3xp/anim/Anim_Blend.cpp | |
index cacf5f1..4215336 100644 | |
--- a/neo/d3xp/anim/Anim_Blend.cpp | |
+++ b/neo/d3xp/anim/Anim_Blend.cpp | |
@@ -5490,19 +5490,19 @@ 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 | |
+ 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(); | |
+ | |
return true; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment