Skip to content

Commit

Permalink
Updated the Primitives Creation Modals addon
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerBforartists committed Mar 12, 2018
1 parent 9856607 commit b08b4a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def ResetObjectParams(self, context):
class BoxCreationModalOperator(bpy.types.Operator):
bl_idname = "object.box_creation_modal_operator"
bl_label = "Box Creation Modal"
bl_description = "Box Modal- \nAllows Box creation by dragging\nClick once to place one corner, Click a second time to place the opposite corner, Click again to confirm the height."
bl_description = "Box Modal- \nAllows Box creation by dragging\nClick once to place one corner, Click a second time to place the opposite corner, Click again to confirm the height"
bl_options = {'REGISTER', 'GRAB_CURSOR', 'BLOCKING', 'UNDO'}

#init Vars
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def ResetObjectParams(self, context):
class CylinderCreationModalOperator(bpy.types.Operator):
bl_idname = "object.cylinder_creation_modal_operator"
bl_label = "Cylinder Creation Modal"
bl_description = "Cylinder Modal- \nAllows Cylinder creation by dragging\nClick once to place object, Click a second time to set the radius, Click again to confirm the height."
bl_description = "Cylinder Modal- \nAllows Cylinder creation by dragging\nClick once to place object, Click a second time to set the radius, Click again to confirm the height"
bl_options = {'REGISTER', 'GRAB_CURSOR', 'BLOCKING', 'UNDO'}

#init Vars
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def ResetObjectParams(self, context):
class SphereCreationModalOperator(bpy.types.Operator):
bl_idname = "object.sphere_creation_modal_operator"
bl_label = "Sphere Creation Modal"
bl_description = "Sphere Modal- \nAllows Sphere creation by dragging\nClick once to place the object, Click a second time to set the radius, Click again to confirm the height."
bl_description = "Sphere Modal- \nAllows Sphere creation by dragging\nClick once to place the object, Click a second time to set the radius, Click again to confirm the height"
bl_options = {'REGISTER', 'GRAB_CURSOR', 'BLOCKING', 'UNDO'}

#init Vars
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ class addPrimitiveModals(AddonPreferences):
HUD_Center = BoolProperty(name="UI Centered", default=True)

def draw(self, context):
layout = self.layout
layout = self.layout
layout.prop(self, "Zsensitivity")
layout.prop(self, "Max_Click_Dist")
layout.prop(self, "HUD_Center")
#layout.prop(self, "number")

#Add option in the Add object menu.
def add_object_button(self, context):

self.layout.operator_context = 'INVOKE_DEFAULT'

self.layout.operator(
operator="object.box_creation_modal_operator",
text="Box Modal",
Expand Down

0 comments on commit b08b4a7

Please sign in to comment.