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:
authorBrendon Murphy <meta.androcto1@gmail.com>2011-12-30 10:06:32 +0400
committerBrendon Murphy <meta.androcto1@gmail.com>2011-12-30 10:06:32 +0400
commit147aaf7d3810dcda3f76a31bede45f67aeb3fa1b (patch)
tree7c491ad514d3bcb214c6a4f1e20321e6ca61477d /add_mesh_extra_objects
parent8b98016ceb5138576df21d64564afab45f34d973 (diff)
adding operator presets
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/add_mesh_3d_function_surface.py4
-rw-r--r--add_mesh_extra_objects/add_mesh_extra_objects.py8
-rw-r--r--add_mesh_extra_objects/add_mesh_gears.py4
-rw-r--r--add_mesh_extra_objects/add_mesh_gemstones.py4
-rw-r--r--add_mesh_extra_objects/add_mesh_pyramid.py2
-rw-r--r--add_mesh_extra_objects/add_mesh_supertoroid.py2
-rw-r--r--add_mesh_extra_objects/add_mesh_twisted_torus.py2
7 files changed, 13 insertions, 13 deletions
diff --git a/add_mesh_extra_objects/add_mesh_3d_function_surface.py b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
index fad7cb5d..f72a2583 100644
--- a/add_mesh_extra_objects/add_mesh_3d_function_surface.py
+++ b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
@@ -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)",
@@ -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). " \
diff --git a/add_mesh_extra_objects/add_mesh_extra_objects.py b/add_mesh_extra_objects/add_mesh_extra_objects.py
index 785a7754..819b9732 100644
--- a/add_mesh_extra_objects/add_mesh_extra_objects.py
+++ b/add_mesh_extra_objects/add_mesh_extra_objects.py
@@ -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",
@@ -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",
@@ -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",
@@ -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",
diff --git a/add_mesh_extra_objects/add_mesh_gears.py b/add_mesh_extra_objects/add_mesh_gears.py
index dcd3d931..a8f05156 100644
--- a/add_mesh_extra_objects/add_mesh_gears.py
+++ b/add_mesh_extra_objects/add_mesh_gears.py
@@ -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",
@@ -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",
diff --git a/add_mesh_extra_objects/add_mesh_gemstones.py b/add_mesh_extra_objects/add_mesh_gemstones.py
index 63c7b6ef..f688b8c6 100644
--- a/add_mesh_extra_objects/add_mesh_gemstones.py
+++ b/add_mesh_extra_objects/add_mesh_gemstones.py
@@ -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",
@@ -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",
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py
index dd3f5e30..bf91b614 100644
--- a/add_mesh_extra_objects/add_mesh_pyramid.py
+++ b/add_mesh_extra_objects/add_mesh_pyramid.py
@@ -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,
diff --git a/add_mesh_extra_objects/add_mesh_supertoroid.py b/add_mesh_extra_objects/add_mesh_supertoroid.py
index 46a3e7d3..0be6a89b 100644
--- a/add_mesh_extra_objects/add_mesh_supertoroid.py
+++ b/add_mesh_extra_objects/add_mesh_supertoroid.py
@@ -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",
diff --git a/add_mesh_extra_objects/add_mesh_twisted_torus.py b/add_mesh_extra_objects/add_mesh_twisted_torus.py
index 1fd872c5..c7d8d570 100644
--- a/add_mesh_extra_objects/add_mesh_twisted_torus.py
+++ b/add_mesh_extra_objects/add_mesh_twisted_torus.py
@@ -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" \