Fix T69653: Freestyle modifiers "Distance from ..." python error

Was a wrong rename in rBaeb8e81f2741
This commit is contained in:
Philipp Oeser 2019-09-09 10:45:24 +02:00
parent f3a4f12ac0
commit d865ac8b1b
Notes: blender-bot 2023-02-14 09:09:43 +01:00
Referenced by issue #69653, Freestyle modifiers "Distance from ..." python error
1 changed files with 1 additions and 1 deletions

View File

@ -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