diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-17 08:58:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-17 09:01:07 +0300 |
commit | 0a1b6a3b4a603387113d12d52f26ba164e4cd737 (patch) | |
tree | b310ce6f01ad5de34486aa7fed52162da39b7853 /release/scripts | |
parent | 0b5c2685db57ff7726bb7d6886b0d4af650c4985 (diff) |
Fix T73893: Unable to create torus with under 10mm radius
Allow zero major/minor radius, also use 10,000 for a hard maximum.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/add_mesh_torus.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_operators/add_mesh_torus.py b/release/scripts/startup/bl_operators/add_mesh_torus.py index 3ce06647cdc..edcd52c12bd 100644 --- a/release/scripts/startup/bl_operators/add_mesh_torus.py +++ b/release/scripts/startup/bl_operators/add_mesh_torus.py @@ -162,7 +162,8 @@ class AddTorus(Operator, object_utils.AddObjectHelper): name="Major Radius", description=("Radius from the origin to the " "center of the cross sections"), - min=0.01, max=100.0, + soft_min=0.0, soft_max=100.0, + min=0.0, max=10_000.0, default=1.0, subtype='DISTANCE', unit='LENGTH', @@ -170,7 +171,8 @@ class AddTorus(Operator, object_utils.AddObjectHelper): minor_radius: FloatProperty( name="Minor Radius", description="Radius of the torus' cross section", - min=0.01, max=100.0, + soft_min=0.0, soft_max=100.0, + min=0.0, max=10_000.0, default=0.25, subtype='DISTANCE', unit='LENGTH', @@ -178,7 +180,8 @@ class AddTorus(Operator, object_utils.AddObjectHelper): abso_major_rad: FloatProperty( name="Exterior Radius", description="Total Exterior Radius of the torus", - min=0.01, max=100.0, + soft_min=0.0, soft_max=100.0, + min=0.0, max=10_000.0, default=1.25, subtype='DISTANCE', unit='LENGTH', @@ -186,7 +189,8 @@ class AddTorus(Operator, object_utils.AddObjectHelper): abso_minor_rad: FloatProperty( name="Interior Radius", description="Total Interior Radius of the torus", - min=0.01, max=100.0, + soft_min=0.0, soft_max=100.0, + min=0.0, max=10_000.0, default=0.75, subtype='DISTANCE', unit='LENGTH', |