Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-06 17:14:04 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-06 17:15:35 +0300
commitbfe73b4cd26a056431edbc9fb572e500d233f75a (patch)
tree23719eb2336bbde73fe8ed3e4f358aa45b01df69 /space_view3d_copy_attributes.py
parent964a38d0d14ee4e383492b0c635e22f0ff0242e8 (diff)
Copy Attributes: update for latest API changes.
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r--space_view3d_copy_attributes.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index f6e79e3a..4e2bbb03 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -112,11 +112,11 @@ def getmat(bone, active, context, ignoreparent):
else:
parentposemat = parentbonemat = Matrix()
if parentbonemat == parentposemat or ignoreparent:
- newmat = bonemat_local.inverted() * otherloc
+ newmat = bonemat_local.inverted() @ otherloc
else:
- bonemat = parentbonemat.inverted() * bonemat_local
+ bonemat = parentbonemat.inverted() @ bonemat_local
- newmat = bonemat.inverted() * parentposemat.inverted() * otherloc
+ newmat = bonemat.inverted() @ parentposemat.inverted() @ otherloc
return newmat
@@ -248,7 +248,7 @@ class CopySelectedPoseConstraints(Operator):
bl_idname = "pose.copy_selected_constraints"
bl_label = "Copy Selected Constraints"
- selection = BoolVectorProperty(
+ selection: BoolVectorProperty(
size=32,
options={'SKIP_SAVE'}
)
@@ -307,9 +307,9 @@ def obLoopExec(self, context, funk):
def world_to_basis(active, ob, context):
"""put world coords of active as basis coords of ob"""
- local = ob.parent.matrix_world.inverted() * active.matrix_world
- P = ob.matrix_basis * ob.matrix_local.inverted()
- mat = P * local
+ local = ob.parent.matrix_world.inverted() @ active.matrix_world
+ P = ob.matrix_basis @ ob.matrix_local.inverted()
+ mat = P @ local
return(mat)
@@ -551,7 +551,7 @@ class CopySelectedObjectConstraints(Operator):
bl_idname = "object.copy_selected_constraints"
bl_label = "Copy Selected Constraints"
- selection = BoolVectorProperty(
+ selection: BoolVectorProperty(
size=32,
options={'SKIP_SAVE'}
)
@@ -585,7 +585,7 @@ class CopySelectedObjectModifiers(Operator):
bl_idname = "object.copy_selected_modifiers"
bl_label = "Copy Selected Modifiers"
- selection = BoolVectorProperty(
+ selection: BoolVectorProperty(
size=32,
options={'SKIP_SAVE'}
)
@@ -757,11 +757,11 @@ class MESH_OT_CopyFaceSettings(Operator):
bl_label = "Copy Face Settings"
bl_options = {'REGISTER', 'UNDO'}
- mode = StringProperty(
+ mode: StringProperty(
name="Mode",
options={"HIDDEN"},
)
- layer = StringProperty(
+ layer: StringProperty(
name="Layer",
options={"HIDDEN"},
)