Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCharlie Carley <snailrose@gmail.com>2007-06-01 00:40:59 +0400
committerCharlie Carley <snailrose@gmail.com>2007-06-01 00:40:59 +0400
commita9640819ffbad25f2730bb89e47ee94c1d89786e (patch)
tree2ec4170b108b8f39923f29dbcc3e64e2f499433f /source
parent134739106023f3f7635ad1a128c7f77044b40884 (diff)
Applied patch [#5795] Parent to bone - Supplied by Monster.
Diffstat (limited to 'source')
-rw-r--r--source/gameengine/Converter/BL_ArmatureObject.cpp5
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]);