From 34be323f5e8a0db339c814c98374b456df5202b2 Mon Sep 17 00:00:00 2001
From: Florian Meyer <florianfelix@web.de>
Date: Fri, 14 May 2010 22:47:41 +0000
Subject: [PATCH] -added draw() to worms op -spamming the list with gears

---
 add_mesh_gears.py | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/add_mesh_gears.py b/add_mesh_gears.py
index 5ba5b6f58..75ba8647e 100644
--- a/add_mesh_gears.py
+++ b/add_mesh_gears.py
@@ -757,7 +757,6 @@ class AddGear(bpy.types.Operator):
     def draw(self, context):
         props = self.properties
         layout = self.layout
-        col = layout.column()
         box = layout.box()
         box.prop(props, 'number_of_teeth')
         box = layout.box()
@@ -888,6 +887,22 @@ class AddWormGear(bpy.types.Operator):
         default=0.0)
     newMatrix = 'fromInvoke'
 
+    def draw(self, context):
+        props = self.properties
+        layout = self.layout
+        box = layout.box()
+        box.prop(props, 'number_of_teeth')
+        box.prop(props, 'number_of_rows')
+        box.prop(props, 'radius')
+        box.prop(props, 'row_height')
+        box = layout.box()
+        box.prop(props, 'addendum')
+        box.prop(props, 'dedendum')
+        box = layout.box()
+        box.prop(props, 'angle')
+        box.prop(props, 'skew')
+        box.prop(props, 'crown')
+
     def execute(self, context):
         props = self.properties
 
-- 
GitLab