Applied patch [#5795] Parent to bone - Supplied by Monster.

This commit is contained in:
Charlie Carley 2007-05-31 20:40:59 +00:00
parent 1347391060
commit a9640819ff

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