Skip to content
Snippets Groups Projects
Commit 8ff6c903 authored by Bassam Kurdali's avatar Bassam Kurdali
Browse files

fixed Matrix.invert() to Matrix.inverted() due to changes in py api, thanks Jason for bugging me :)

parent 58fe3b00
No related branches found
No related tags found
No related merge requests found
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
bl_info = { bl_info = {
'name': 'Copy Attributes Menu', 'name': 'Copy Attributes Menu',
'author': 'Bassam Kurdali, Fabian Fricke, wiseman303', 'author': 'Bassam Kurdali, Fabian Fricke, wiseman303',
'version': (0, 4, 2), 'version': (0, 4, 3),
"blender": (2, 5, 7), "blender": (2, 5, 7),
"api": 35622, "api": 36200,
'location': 'View3D > Ctrl-C', 'location': 'View3D > Ctrl-C',
'description': 'Copy Attributes Menu from Blender 2.4', 'description': 'Copy Attributes Menu from Blender 2.4',
'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\ 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/'\
...@@ -109,11 +109,11 @@ def getmat(bone, active, context, ignoreparent): ...@@ -109,11 +109,11 @@ def getmat(bone, active, context, ignoreparent):
parentbonemat.identity() parentbonemat.identity()
if parentbonemat == parentposemat or ignoreparent: if parentbonemat == parentposemat or ignoreparent:
newmat = bonemat_local.invert() * otherloc newmat = bonemat_local.inverted() * otherloc
else: 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 return newmat
...@@ -776,4 +776,4 @@ def unregister(): ...@@ -776,4 +776,4 @@ def unregister():
km.keymap_items.remove(kmi) km.keymap_items.remove(kmi)
if __name__ == "__main__": if __name__ == "__main__":
register() register()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment