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
Branches
Tags
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment