[Bf-extensions-cvs] [787d786c] master: looptools Matrix Multiplication Fix: T61698

meta-androcto noreply at git.blender.org
Tue Feb 19 05:19:42 CET 2019


Commit: 787d786cb8e7230c585dd55c03bd27ffdb160e8d
Author: meta-androcto
Date:   Tue Feb 19 15:19:22 2019 +1100
Branches: master
https://developer.blender.org/rBA787d786cb8e7230c585dd55c03bd27ffdb160e8d

looptools Matrix Multiplication Fix: T61698

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

M	mesh_looptools.py

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

diff --git a/mesh_looptools.py b/mesh_looptools.py
index 97470147..a555a3eb 100644
--- a/mesh_looptools.py
+++ b/mesh_looptools.py
@@ -299,9 +299,9 @@ def calculate_plane(bm_mod, loop, method="best_fit", object=False):
         # calculate view normal
         rotation = bpy.context.space_data.region_3d.view_matrix.to_3x3().\
             inverted()
-        normal = rotation * mathutils.Vector((0.0, 0.0, 1.0))
+        normal = rotation @ mathutils.Vector((0.0, 0.0, 1.0))
         if object:
-            normal = object.matrix_world.inverted().to_euler().to_matrix() * \
+            normal = object.matrix_world.inverted().to_euler().to_matrix() @ \
                      normal
 
     return(com, normal)



More information about the Bf-extensions-cvs mailing list