medfall

A super great game engine
Log | Files | Refs

commit 473dbbe49543bcbf7afab84749d33ae6e6dd8fa0
parent 31fcbf2df0ccda97fbd18ae5f16c4e640410f2b8
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri, 31 May 2019 16:34:08 +0300

Whoops

Diffstat:
Mgltf.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gltf.cc b/gltf.cc @@ -143,7 +143,6 @@ void SampleAnimationClip( const AnimationReel & reel, u32 clip_idx, float t, flo void ComputeMatrixPalette( const AnimationReel & animation, const SQT * sqts, Mat4 * joint_poses, Mat4 * skinning_matrices ) { u8 joint_idx = animation.root_joint; for( u32 i = 0; i < animation.num_joints; i++ ) { - joint_idx = animation.joints[ joint_idx ].next; u8 parent = animation.joints[ joint_idx ].parent; if( parent != U8_MAX ) { joint_poses[ joint_idx ] = joint_poses[ parent ] * SQTToMat4( sqts[ joint_idx ] ); @@ -151,6 +150,7 @@ void ComputeMatrixPalette( const AnimationReel & animation, const SQT * sqts, Ma else { joint_poses[ joint_idx ] = SQTToMat4( sqts[ joint_idx ] ); } + joint_idx = animation.joints[ joint_idx ].next; } for( u32 i = 0; i < animation.num_joints; i++ ) {