]> git.tdb.fi Git - libs/gl.git/commit
Fix several bugs in the animation system
authorMikko Rasa <tdb@tdb.fi>
Mon, 13 Aug 2012 12:25:54 +0000 (15:25 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 13 Aug 2012 12:25:54 +0000 (15:25 +0300)
commit164d77011ab4ebe76c9bf2b7ed8d8dd8ebc20e61
treeb2d7bd12a8343668276f3f293fcd8a0790c8d349
parentb61c103559c83d6fe7309f2ca4489f09e701c4cf
Fix several bugs in the animation system

Make the identity fallback matrix static so the pointers in interpolations
stay valid.

Don't crash when getting pose matrices from the first keyframe.

Matrix multiplication order for base point shift compensation was wrong.

Re-compensate for base point shift after interpolation.

Use correct comparison operator for max_index in AnimationPlayer.

Pass collection to keyframe loader to make loading poses possible.

Use Pose::set_armature rather than loading the pointer directly to get the
matrix array resized.
source/animation.cpp
source/animationplayer.cpp
source/pose.cpp
source/pose.h