From a9640819ffbad25f2730bb89e47ee94c1d89786e Mon Sep 17 00:00:00 2001 From: Charlie Carley Date: Thu, 31 May 2007 20:40:59 +0000 Subject: [PATCH] Applied patch [#5795] Parent to bone - Supplied by Monster. --- source/gameengine/Converter/BL_ArmatureObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/gameengine/Converter/BL_ArmatureObject.cpp b/source/gameengine/Converter/BL_ArmatureObject.cpp index 91c527f1980..4bf13a09fb4 100644 --- a/source/gameengine/Converter/BL_ArmatureObject.cpp +++ b/source/gameengine/Converter/BL_ArmatureObject.cpp @@ -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]);