From 0a9eaafc99bda2a49732ba6404af08a9431d64fc Mon Sep 17 00:00:00 2001 From: Florian Meyer <florianfelix@web.de> Date: Sat, 19 Jun 2010 03:50:19 +0000 Subject: [PATCH] more updates to defaults --- curve_simplify.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/curve_simplify.py b/curve_simplify.py index bd0c7157c..a6b579f69 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -159,7 +159,7 @@ def iterate(points, newVerts, error): alti = altitude(points[newVerts[newIndex]], points[newVerts[newIndex+1]], point) if alti > alti_store: alti_store = alti - if alti_store > error: + if alti_store >= error: bigVert = i+1+newVerts[newIndex] if bigVert: new.append(bigVert) @@ -378,9 +378,8 @@ class GRAPH_OT_simplify(bpy.types.Operator): description="degree of curve to get averaged curvatures") error = FloatProperty(name="error", description="maximum error to allow - distance", - min=0.0, - soft_min=0.0, - default=0.00, precision=3) + min=0.0, soft_min=0.0, + default=0, precision=3) degreeOut = IntProperty(name="degree", min=3, soft_min=3, max=7, soft_max=7, @@ -483,9 +482,8 @@ class CURVE_OT_simplify(bpy.types.Operator): description="degree of curve to get averaged curvatures") error = FloatProperty(name="error in Bu", description="maximum error in Blenderunits to allow - distance", - min=0, - soft_min=0, - default=0.0) + min=0, soft_min=0, + default=0.0, precision=3) degreeOut = IntProperty(name="degree", min=3, soft_min=3, max=7, soft_max=7, @@ -493,8 +491,7 @@ class CURVE_OT_simplify(bpy.types.Operator): description="degree of new curve") dis_error = FloatProperty(name="distance error", description="maximum error in Blenderunits to allow - distance", - min=0, - soft_min=0, + min=0, soft_min=0, default=0.0) keepShort = BoolProperty(name="keep short Splines", description="keep short splines (less then 7 points)", -- GitLab