Skip to content
Snippets Groups Projects
Commit ae3c9b0d authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for recent mathutils updates. note that the logic here is confusing and Im...

fix for recent mathutils updates. note that the logic here is confusing and Im not sure why the original bone matrix us used at all.
parent e47b7700
No related branches found
No related tags found
No related merge requests found
...@@ -107,8 +107,13 @@ def getmat(bone, active, context, ignoreparent): ...@@ -107,8 +107,13 @@ def getmat(bone, active, context, ignoreparent):
context.active_object.pose.bones[data_bone.parent.name].matrix) context.active_object.pose.bones[data_bone.parent.name].matrix)
parentbonemat = Matrix(data_bone.parent.matrix_local) parentbonemat = Matrix(data_bone.parent.matrix_local)
else: else:
parentposemat = bonemat_local.copy().identity() parentposemat = bonemat_local.copy()
parentbonemat = bonemat_local.copy().identity() parentbonemat = bonemat_local.copy()
# FIXME! why copy from the parent if setting identity ?, Campbell
parentposemat.identity()
parentbonemat.identity()
if parentbonemat == parentposemat or ignoreparent: if parentbonemat == parentposemat or ignoreparent:
newmat = bonemat_local.invert() * otherloc newmat = bonemat_local.invert() * otherloc
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment