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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-09-09 11:46:25 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-09-09 11:46:25 +0300
commit98d3a16281b6da873eb07055c565df6976d5adec (patch)
tree424a5c62c50f7aae0f730b25eef9cd936e10e5a0 /release
parentd865ac8b1bbcf8c57c19be4e689be4492d88cde9 (diff)
Fix (unreported) Freestyle modifiers element-wise multiplication error
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 35fb0ab315c..baac3556fb2 100644
--- a/release/scripts/startup/bl_operators/freestyle.py
+++ b/release/scripts/startup/bl_operators/freestyle.py
@@ -113,17 +113,17 @@ class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator):
max_dist = -min_dist
if m.type == 'DISTANCE_FROM_CAMERA':
for ob in selection:
- ob_to_cam = matrix_to_camera * ob.matrix_world
+ ob_to_cam = matrix_to_camera @ ob.matrix_world
for vert in ob.data.vertices:
# 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 ob in selection:
for vert in ob.data.vertices:
# 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