diff options
author | Charlie Carley <snailrose@gmail.com> | 2007-06-01 00:40:59 +0400 |
---|---|---|
committer | Charlie Carley <snailrose@gmail.com> | 2007-06-01 00:40:59 +0400 |
commit | a9640819ffbad25f2730bb89e47ee94c1d89786e (patch) | |
tree | 2ec4170b108b8f39923f29dbcc3e64e2f499433f /source/gameengine/Converter | |
parent | 134739106023f3f7635ad1a128c7f77044b40884 (diff) |
Applied patch [#5795] Parent to bone - Supplied by Monster.
Diffstat (limited to 'source/gameengine/Converter')
-rw-r--r-- | source/gameengine/Converter/BL_ArmatureObject.cpp | 5 |
1 files 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]); |