Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-08-27 16:51:34 +0400
committerThomas Dinges <blender@dingto.org>2011-08-27 16:51:34 +0400
commitd744270e737d5ecb192897e94549fde45405c469 (patch)
treed5e15d7e643a2f6161dc26a980f62f4e55bd3f37 /add_curve_torus_knots.py
parent4f5731ed3985b5db7b654f71e102e8b260196461 (diff)
Addon UI Cleanup, Part 1
* General Rule (for Ivygen and Sapling): If you need more code for declaring the layouts than for the props itself, something is wrong. ;-) * if > elif
Diffstat (limited to 'add_curve_torus_knots.py')
-rw-r--r--add_curve_torus_knots.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py
index 55ffa802..ed0329e1 100644
--- a/add_curve_torus_knots.py
+++ b/add_curve_torus_knots.py
@@ -174,8 +174,7 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
layout = self.layout
# general options
- col = layout.column()
- col.label(text="Torus Knot Parameters")
+ layout.label(text="Torus Knot Parameters:")
# Parameters
box = layout.box()
@@ -192,7 +191,7 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
# surface Options
col = layout.column()
- col.label(text="Geometry Options")
+ col.label(text="Geometry Options:")
box = layout.box()
box.prop(self, 'geo_surf')
if self.geo_surf:
@@ -200,6 +199,7 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
box.prop(self, 'geo_bRes')
box.prop(self, 'geo_extrude')
box.prop(self, 'geo_res')
+
col = layout.column()
col.prop(self, 'location')
col.prop(self, 'rotation')