[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26018] trunk/blender/release/scripts/op/ add_mesh_torus.py: [#20685] Fixed: cleaned up descriptions, removed unrelated comments in code
Campbell Barton
ideasman42 at gmail.com
Fri Jan 15 11:02:03 CET 2010
Revision: 26018
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26018
Author: campbellbarton
Date: 2010-01-15 11:02:02 +0100 (Fri, 15 Jan 2010)
Log Message:
-----------
[#20685] Fixed: cleaned up descriptions, removed unrelated comments in code
from Jaevixa McNomera (jaevixa)
Modified Paths:
--------------
trunk/blender/release/scripts/op/add_mesh_torus.py
Modified: trunk/blender/release/scripts/op/add_mesh_torus.py
===================================================================
--- trunk/blender/release/scripts/op/add_mesh_torus.py 2010-01-15 09:59:42 UTC (rev 26017)
+++ trunk/blender/release/scripts/op/add_mesh_torus.py 2010-01-15 10:02:02 UTC (rev 26018)
@@ -82,10 +82,10 @@
bl_undo = True
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)
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)
major_segments = IntProperty(name="Major Segments",
description="Number of segments for the main ring of the torus",
@@ -104,12 +104,10 @@
def execute(self, context):
- #deleting between THESE lines makes it re-appear in blender
if self.properties.use_abso == True:
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.minor_radius = extra_helper
- #deleting between THESE lines makes it re-appear in blender
verts_loc, faces = add_torus(self.properties.major_radius,
self.properties.minor_radius,
More information about the Bf-blender-cvs
mailing list