Skip to content

Commit

Permalink
fixed Matrix.invert() to Matrix.inverted() due to changes in py api, …
Browse files Browse the repository at this point in the history
…thanks Jason for bugging me :)
  • Loading branch information
Bassam Kurdali committed Apr 17, 2011
1 parent 58fe3b0 commit 8ff6c90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions space_view3d_copy_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
bl_info = {
'name': 'Copy Attributes Menu',
'author': 'Bassam Kurdali, Fabian Fricke, wiseman303',
'version': (0, 4, 2),
'version': (0, 4, 3),
"blender": (2, 5, 7),
"api": 35622,
"api": 36200,
'location': 'View3D > Ctrl-C',
'description': 'Copy Attributes Menu from Blender 2.4',
'wiki_url': 'http:https://wiki.blender.org/index.php/Extensions:2.5/Py/'\
Expand Down Expand Up @@ -109,11 +109,11 @@ def getmat(bone, active, context, ignoreparent):
parentbonemat.identity()

if parentbonemat == parentposemat or ignoreparent:
newmat = bonemat_local.invert() * otherloc
newmat = bonemat_local.inverted() * otherloc
else:
bonemat = parentbonemat.invert() * bonemat_local
bonemat = parentbonemat.inverted() * bonemat_local

newmat = bonemat.invert() * parentposemat.invert() * otherloc
newmat = bonemat.inverted() * parentposemat.inverted() * otherloc
return newmat


Expand Down Expand Up @@ -776,4 +776,4 @@ def unregister():
km.keymap_items.remove(kmi)

if __name__ == "__main__":
register()
register()

0 comments on commit 8ff6c90

Please sign in to comment.