forked from bartvdbraak/blender
[#20685] Fixed: cleaned up descriptions, removed unrelated comments in code
from Jaevixa McNomera (jaevixa)
This commit is contained in:
parent
4d2c55824e
commit
aed721e01c
@ -82,10 +82,10 @@ class AddTorus(bpy.types.Operator):
|
|||||||
bl_undo = True
|
bl_undo = True
|
||||||
|
|
||||||
major_radius = FloatProperty(name="Major Radius",
|
major_radius = FloatProperty(name="Major Radius",
|
||||||
description="Number of segments for the main ring of the torus",
|
description="Radius from center of torus to center of it's cross section",
|
||||||
default=1.0, min=0.01, max=100.0)
|
default=1.0, min=0.01, max=100.0)
|
||||||
minor_radius = FloatProperty(name="Minor Radius",
|
minor_radius = FloatProperty(name="Minor Radius",
|
||||||
description="Number of segments for the minor ring of the torus",
|
description="Radius of the torus' cross section",
|
||||||
default=0.25, min=0.01, max=100.0)
|
default=0.25, min=0.01, max=100.0)
|
||||||
major_segments = IntProperty(name="Major Segments",
|
major_segments = IntProperty(name="Major Segments",
|
||||||
description="Number of segments for the main ring of the torus",
|
description="Number of segments for the main ring of the torus",
|
||||||
@ -104,12 +104,10 @@ class AddTorus(bpy.types.Operator):
|
|||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
|
||||||
#deleting between THESE lines makes it re-appear in blender
|
|
||||||
if self.properties.use_abso == True:
|
if self.properties.use_abso == True:
|
||||||
extra_helper = (self.properties.abso_major_rad - self.properties.abso_minor_rad) * 0.5
|
extra_helper = (self.properties.abso_major_rad - self.properties.abso_minor_rad) * 0.5
|
||||||
self.properties.major_radius = self.properties.abso_minor_rad + extra_helper
|
self.properties.major_radius = self.properties.abso_minor_rad + extra_helper
|
||||||
self.properties.minor_radius = extra_helper
|
self.properties.minor_radius = extra_helper
|
||||||
#deleting between THESE lines makes it re-appear in blender
|
|
||||||
|
|
||||||
verts_loc, faces = add_torus(self.properties.major_radius,
|
verts_loc, faces = add_torus(self.properties.major_radius,
|
||||||
self.properties.minor_radius,
|
self.properties.minor_radius,
|
||||||
|
Loading…
Reference in New Issue
Block a user