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:45:24 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-09-09 11:45:24 +0300
commitd865ac8b1bbcf8c57c19be4e689be4492d88cde9 (patch)
tree87bfa656c20a3092f9f5c5b954264f5ab9115316 /release/scripts/startup/bl_operators/freestyle.py
parentf3a4f12ac090768db8ed667f5a2f00f0c6d32e57 (diff)
Fix T69653: Freestyle modifiers "Distance from ..." python error
Was a wrong rename in rBaeb8e81f2741
Diffstat (limited to 'release/scripts/startup/bl_operators/freestyle.py')
-rw-r--r--release/scripts/startup/bl_operators/freestyle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py
index 3d619f97e6e..35fb0ab315c 100644
--- a/release/scripts/startup/bl_operators/freestyle.py
+++ b/release/scripts/startup/bl_operators/freestyle.py
@@ -106,7 +106,7 @@ class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator):
m.range_max = max_dist
return {'FINISHED'}
# Find selected mesh objects
- selection = [ob for ob in scene.objects if ob.select_get() and ob.type == 'MESH' and ob.name != source.name]
+ selection = [ob for ob in scene.objects if ob.select_get() and ob.type == 'MESH' and ob.name != ref.name]
if selection:
# Compute the min/max distance from the reference to mesh vertices
min_dist = sys.float_info.max