[Bf-blender-cvs] [d865ac8b1bb] master: Fix T69653: Freestyle modifiers "Distance from ..." python error

Philipp Oeser noreply at git.blender.org
Mon Sep 9 10:50:03 CEST 2019


Commit: d865ac8b1bbcf8c57c19be4e689be4492d88cde9
Author: Philipp Oeser
Date:   Mon Sep 9 10:45:24 2019 +0200
Branches: master
https://developer.blender.org/rBd865ac8b1bbcf8c57c19be4e689be4492d88cde9

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

Was a wrong rename in rBaeb8e81f2741

===================================================================

M	release/scripts/startup/bl_operators/freestyle.py

===================================================================

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



More information about the Bf-blender-cvs mailing list