Applied patch [#5795] Parent to bone - Supplied by Monster.
authorCharlie Carley <snailrose@gmail.com>
Thu, 31 May 2007 20:40:59 +0000 (20:40 +0000)
committerCharlie Carley <snailrose@gmail.com>
Thu, 31 May 2007 20:40:59 +0000 (20:40 +0000)
source/gameengine/Converter/BL_ArmatureObject.cpp

index 91c527f198006ee159b367486f9741a3d56063e8..4bf13a09fb430be25c5db72aa38b638c0bd8d98d 100644 (file)
@@ -190,8 +190,9 @@ double BL_ArmatureObject::GetLastFrame()
 
 bool BL_ArmatureObject::GetBoneMatrix(Bone* bone, MT_Matrix4x4& matrix) const
 {
-       // ton hack
-       bPoseChannel *pchan= get_pose_channel(m_pose, bone->name);
+       Object* par_arma = m_objArma;
+       where_is_pose(par_arma);
+       bPoseChannel *pchan= get_pose_channel(par_arma->pose, bone->name);
 
        if(pchan) {
                matrix.setValue(&pchan->pose_mat[0][0]);