BGE: repair armature animation. Was broken since commit 27766.
authorBenoit Bolsee <benoit.bolsee@online.be>
Sun, 28 Mar 2010 20:08:16 +0000 (20:08 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Sun, 28 Mar 2010 20:08:16 +0000 (20:08 +0000)
source/gameengine/Converter/BL_ArmatureObject.cpp

index 7a6fc04463761949a9f7ead37bea7d1a16710c93..18204d1deab80207e1d149a8576d64d99f7afa79 100644 (file)
@@ -89,6 +89,7 @@ void game_copy_pose(bPose **dst, bPose *src, int copy_constraint)
        }
        
        out= (bPose*)MEM_dupallocN(src);
+       out->chanhash = NULL;
        out->agroups.first= out->agroups.last= NULL;
        out->ikdata = NULL;
        out->ikparam = MEM_dupallocN(out->ikparam);
@@ -120,7 +121,8 @@ void game_copy_pose(bPose **dst, bPose *src, int copy_constraint)
        }
 
        BLI_ghash_free(ghash, NULL, NULL);
-       
+       // set acceleration structure for channel lookup
+       make_pose_channels_hash(out);
        *dst=out;
 }