Skip to content

Commit

Permalink
adding operator presets
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-androcto committed Dec 30, 2011
1 parent 8b98016 commit 147aaf7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions add_mesh_extra_objects/add_mesh_3d_function_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class AddZFunctionSurface(bpy.types.Operator):
'''Add a surface defined defined by a function z=f(x,y)'''
bl_idname = "mesh.primitive_z_function_surface"
bl_label = "Add Z Function Surface"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

equation = StringProperty(name="Z Equation",
description="Equation for z=f(x,y)",
Expand Down Expand Up @@ -403,7 +403,7 @@ class AddXYZFunctionSurface(bpy.types.Operator):
+ ''' x=F1(u,v), y=F2(u,v) and z=F3(u,v)'''
bl_idname = "mesh.primitive_xyz_function_surface"
bl_label = "Add X,Y,Z Function Surface"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

x_eq = StringProperty(name="X equation",
description="Equation for x=F(u,v). " \
Expand Down
8 changes: 4 additions & 4 deletions add_mesh_extra_objects/add_mesh_extra_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class AddSqorus(bpy.types.Operator):
'''Add a sqorus mesh.'''
bl_idname = "mesh.primitive_sqorus_add"
bl_label = "Add Sqorus"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

hole_size = FloatProperty(name="Hole Size",
description="Size of the Hole",
Expand Down Expand Up @@ -389,7 +389,7 @@ class AddWedge(bpy.types.Operator):
'''Add a wedge mesh.'''
bl_idname = "mesh.primitive_wedge_add"
bl_label = "Add Wedge"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

size_x = FloatProperty(name="Size X",
description="Size along the X axis",
Expand Down Expand Up @@ -423,7 +423,7 @@ class AddStar(bpy.types.Operator):
'''Add a star mesh.'''
bl_idname = "mesh.primitive_star_add"
bl_label = "Add Star"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

points = IntProperty(name="Points",
description="Number of points for the star",
Expand Down Expand Up @@ -464,7 +464,7 @@ class AddTrapezohedron(bpy.types.Operator):
bl_idname = "mesh.primitive_trapezohedron_add"
bl_label = "Add trapezohedron"
bl_description = "Create one of the regular solids"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

segments = IntProperty(name = "Segments",
description = "Number of repeated segments",
Expand Down
4 changes: 2 additions & 2 deletions add_mesh_extra_objects/add_mesh_gears.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ class AddGear(bpy.types.Operator):
'''Add a gear mesh.'''
bl_idname = "mesh.primitive_gear"
bl_label = "Add Gear"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

number_of_teeth = IntProperty(name="Number of Teeth",
description="Number of teeth on the gear",
Expand Down Expand Up @@ -680,7 +680,7 @@ class AddWormGear(bpy.types.Operator):
'''Add a worm gear mesh.'''
bl_idname = "mesh.primitive_worm_gear"
bl_label = "Add Worm Gear"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

number_of_teeth = IntProperty(name="Number of Teeth",
description="Number of teeth on the gear",
Expand Down
4 changes: 2 additions & 2 deletions add_mesh_extra_objects/add_mesh_gemstones.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class AddDiamond(bpy.types.Operator):
'''Add a diamond mesh.'''
bl_idname = "mesh.primitive_diamond_add"
bl_label = "Add Diamond"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

segments = IntProperty(name="Segments",
description="Number of segments for the diamond",
Expand Down Expand Up @@ -287,7 +287,7 @@ class AddGem(bpy.types.Operator):
bl_idname = "mesh.primitive_gem_add"
bl_label = "Add Gem"
bl_description = "Create an offset faceted gem"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

segments = IntProperty(name="Segments",
description="Longitudial segmentation",
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_pyramid.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class AddPyramid(bpy.types.Operator, AddObjectHelper):
"""Add a Mesh Object"""
bl_idname = "mesh.primitive_steppyramid_add"
bl_label = "Pyramid"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

initial_size = FloatProperty(name="Initial Size", default=2.0,
min=0.0, max=20.0,
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_supertoroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class add_supertoroid(bpy.types.Operator):
bl_idname = "mesh.primitive_supertoroid_add"
bl_label = "Add SuperToroid"
bl_description = "Create a SuperToroid"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

R = FloatProperty(name = "big radius",
description = "The radius inside the tube",
Expand Down
2 changes: 1 addition & 1 deletion add_mesh_extra_objects/add_mesh_twisted_torus.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class AddTwistedTorus(bpy.types.Operator):
'''Add a torus mesh'''
bl_idname = "mesh.primitive_twisted_torus_add"
bl_label = "Add Torus"
bl_options = {'REGISTER', 'UNDO'}
bl_options = {'REGISTER', 'UNDO', 'PRESET'}

major_radius = FloatProperty(name="Major Radius",
description="Radius from the origin to the" \
Expand Down

0 comments on commit 147aaf7

Please sign in to comment.