From 8ff6c903b5cd1a37a1106ba703d8aa4b5fd160f6 Mon Sep 17 00:00:00 2001
From: Bassam Kurdali <bkurdali@freefactory.org>
Date: Sun, 17 Apr 2011 21:18:13 +0000
Subject: [PATCH] fixed Matrix.invert() to Matrix.inverted() due to changes in
 py api, thanks Jason for bugging me :)

---
 space_view3d_copy_attributes.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index 9223f9511..1831dd0f4 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -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://wiki.blender.org/index.php/Extensions:2.5/Py/'\
@@ -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
 
 
@@ -776,4 +776,4 @@ def unregister():
                 km.keymap_items.remove(kmi)
 
 if __name__ == "__main__":
-    register()
+    register()
\ No newline at end of file
-- 
GitLab