[Bf-extensions-cvs] [7c1da251] blender2.8: object_facemap_auto: correct remaining matrix multiply issues

Campbell Barton noreply at git.blender.org
Tue Oct 16 00:38:01 CEST 2018


Commit: 7c1da2518418aff0fa72b9b1c4e6f17554cc294f
Author: Campbell Barton
Date:   Tue Oct 16 09:37:49 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBAC7c1da2518418aff0fa72b9b1c4e6f17554cc294f

object_facemap_auto: correct remaining matrix multiply issues

===================================================================

M	object_facemap_auto/auto_fmap_widgets_xform.py

===================================================================

diff --git a/object_facemap_auto/auto_fmap_widgets_xform.py b/object_facemap_auto/auto_fmap_widgets_xform.py
index e001a0a5..efd119ad 100644
--- a/object_facemap_auto/auto_fmap_widgets_xform.py
+++ b/object_facemap_auto/auto_fmap_widgets_xform.py
@@ -257,7 +257,7 @@ def widget_iter_pose_rotate(context, mpr, ob, fmap, fmap_target):
     world_to_local_3x3 = pose_bone_calc_transform_orientation(pose_bone)
 
     # for rotation
-    local_view_vector = (calc_view_vector(context) * world_to_local_3x3).normalized()
+    local_view_vector = (calc_view_vector(context) @ world_to_local_3x3).normalized()
 
     rot_init = getattr(pose_bone, tweak_attr).copy()
 
@@ -277,7 +277,7 @@ def widget_iter_pose_rotate(context, mpr, ob, fmap, fmap_target):
 
         # calculate rotation matrix from input
         co_init, co = coords_to_loc_3d(context, (mval_init, mval), depth_location)
-        # co_delta = world_to_local_3x3 * (co - co_init)
+        # co_delta = world_to_local_3x3 @ (co - co_init)
 
         input_scale = 1.0
         is_precise = 'PRECISE' in tweak
@@ -308,7 +308,7 @@ def widget_iter_pose_rotate(context, mpr, ob, fmap, fmap_target):
             # rot_delta = (co_init - rot_center).rotation_difference(co - rot_center).to_matrix()
 
         rot_matrix = rot_init.to_matrix()
-        rot_matrix = rot_matrix * rot_delta
+        rot_matrix = rot_matrix @ rot_delta
 
         if tweak_attr == "rotation_quaternion":
             final_value = rot_matrix.to_quaternion()



More information about the Bf-extensions-cvs mailing list