diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-03-02 22:27:50 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-03-02 22:27:50 +0400 |
commit | 3b953c39c3f20e0e0285e29358ed57ee2d6a9038 (patch) | |
tree | 5eab37296289ef1679c50285af6ef89facb64f24 /release | |
parent | 21c10788d720b9088794ebf1b2578221deeb6eaf (diff) |
Use sys.float_info.max instead of float('inf').
Review comment from Campbell.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/freestyle.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py index 985676aa86c..19e6f67ba77 100644 --- a/release/scripts/startup/bl_operators/freestyle.py +++ b/release/scripts/startup/bl_operators/freestyle.py @@ -16,6 +16,7 @@ # # ##### END GPL LICENSE BLOCK ##### +import sys import bpy from bpy.props import (EnumProperty, StringProperty) @@ -59,7 +60,7 @@ class SCENE_OT_freestyle_fill_range_by_selection(bpy.types.Operator): selection = [ob for ob in context.scene.objects if ob.select and ob.type == 'MESH' and ob.name != source.name] if len(selection) > 0: # Compute the min/max distance between selected mesh objects and the source - min_dist = float('inf') + min_dist = sys.float_info.max max_dist = -min_dist for ob in selection: for vert in ob.data.vertices: |