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:
authorCampbell Barton <ideasman42@gmail.com>2011-02-05 10:08:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-05 10:08:34 +0300
commit696b0366f5c46dcfcb50f53b4ca4f59c593b88fb (patch)
tree8dfbeb67383adc39b5742c661f61a55eb4066659 /space_view3d_copy_attributes.py
parentdfd3febce161e76015beb0faac516724aceff453 (diff)
update for changes in mathutuils.
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r--space_view3d_copy_attributes.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index b31a66c2..2b1ccebe 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -121,13 +121,13 @@ def getmat(bone, active, context, ignoreparent):
def rotcopy(item, mat):
'''copy rotation to item from matrix mat depending on item.rotation_mode'''
if item.rotation_mode == 'QUATERNION':
- item.rotation_quaternion = mat.rotation_part().to_quat()
+ item.rotation_quaternion = mat.to_3x3().to_quaternion()
elif item.rotation_mode == 'AXIS_ANGLE':
- quat = mat.rotation_part().to_quat()
+ quat = mat.to_3x3().to_quaternion()
item.rotation_axis_angle = Vector([quat.axis[0],
quat.axis[1], quat.axis[2], quat.angle])
else:
- item.rotation_euler = mat.rotation_part().to_euler(item.rotation_mode)
+ item.rotation_euler = mat.to_3x3().to_euler(item.rotation_mode)
def pLoopExec(self, context, funk):
@@ -146,7 +146,7 @@ def pLocLocExec(bone, active, context):
def pLocRotExec(bone, active, context):
- rotcopy(bone, active.matrix_basis.rotation_part())
+ rotcopy(bone, active.matrix_basis.to_3x3())
def pLocScaExec(bone, active, context):
@@ -154,7 +154,7 @@ def pLocScaExec(bone, active, context):
def pVisLocExec(bone, active, context):
- bone.location = getmat(bone, active, context, False).translation_part()
+ bone.location = getmat(bone, active, context, False).to_translation()
def pVisRotExec(bone, active, context):
@@ -165,7 +165,7 @@ def pVisRotExec(bone, active, context):
def pVisScaExec(bone, active, context):
bone.scale = getmat(bone, active, context,
not context.active_object.data.bones[bone.name].use_inherit_scale)\
- .scale_part()
+ .to_scale()
def pDrwExec(bone, active, context):
@@ -289,7 +289,7 @@ def obLoc(ob, active, context):
def obRot(ob, active, context):
- rotcopy(ob, active.matrix_world.rotation_part())
+ rotcopy(ob, active.matrix_world.to_3x3())
def obSca(ob, active, context):