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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Guetzkow <rjg>2019-12-24 05:38:24 +0300
committermano-wii <germano.costa@ig.com.br>2019-12-24 05:40:09 +0300
commitd9ec25844b4ac3143775615469fe69b27105c108 (patch)
treec4d491a84d7ddde11a54323b0355d915427f55ef /release
parentaf2be110c31e9cd71a07fbea516c6bf14fa26179 (diff)
Fix T72636: Error with matrix multiplication in freestyle modifier
The //Distance from Object// and //Distance from Camera// modifiers still used the old 2.79 matrix multiplication syntax. Differential Revision: https://developer.blender.org/D6468
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/freestyle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py
index baac3556fb2..393dd467e88 100644
--- a/release/scripts/startup/bl_operators/freestyle.py
+++ b/release/scripts/startup/bl_operators/freestyle.py
@@ -89,16 +89,16 @@ class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator):
min_dist = sys.float_info.max
max_dist = -min_dist
if m.type == 'DISTANCE_FROM_CAMERA':
- ob_to_cam = matrix_to_camera * ob.matrix_world
+ ob_to_cam = matrix_to_camera @ ob.matrix_world
for vert in selected_verts:
# dist in the camera space
- dist = (ob_to_cam * vert.co).length
+ dist = (ob_to_cam @ vert.co).length
min_dist = min(dist, min_dist)
max_dist = max(dist, max_dist)
elif m.type == 'DISTANCE_FROM_OBJECT':
for vert in selected_verts:
# dist in the world space
- dist = (ob.matrix_world * vert.co - target_location).length
+ dist = (ob.matrix_world @ vert.co - target_location).length
min_dist = min(dist, min_dist)
max_dist = max(dist, max_dist)
# Fill the Range Min/Max entries with the computed distances