Skip to content

Instantly share code, notes, and snippets.

@DanielGibson
Created January 13, 2013 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielGibson/4526283 to your computer and use it in GitHub Desktop.
Save DanielGibson/4526283 to your computer and use it in GitHub Desktop.
try to fix longnecks
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