Skip to content
Snippets Groups Projects
Commit 34be323f authored by Florian Meyer's avatar Florian Meyer
Browse files

-added draw() to worms op

-spamming the list with gears
parent 2680d491
No related branches found
No related tags found
No related merge requests found
...@@ -757,7 +757,6 @@ class AddGear(bpy.types.Operator): ...@@ -757,7 +757,6 @@ class AddGear(bpy.types.Operator):
def draw(self, context): def draw(self, context):
props = self.properties props = self.properties
layout = self.layout layout = self.layout
col = layout.column()
box = layout.box() box = layout.box()
box.prop(props, 'number_of_teeth') box.prop(props, 'number_of_teeth')
box = layout.box() box = layout.box()
...@@ -888,6 +887,22 @@ class AddWormGear(bpy.types.Operator): ...@@ -888,6 +887,22 @@ class AddWormGear(bpy.types.Operator):
default=0.0) default=0.0)
newMatrix = 'fromInvoke' 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): def execute(self, context):
props = self.properties props = self.properties
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment