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:
authormeta-androcto <meta.androcto1@gmail.com>2019-02-19 07:19:22 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-02-19 07:19:22 +0300
commit787d786cb8e7230c585dd55c03bd27ffdb160e8d (patch)
tree1a454f8c2eae8d9e61887be97d8302d5f15eaad8 /mesh_looptools.py
parent0b2d51126c5fbeebb313ebd791fbbbf79b927f8d (diff)
looptools Matrix Multiplication Fix: T61698
Diffstat (limited to 'mesh_looptools.py')
-rw-r--r--mesh_looptools.py4
1 files changed, 2 insertions, 2 deletions
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)