Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-08 20:59:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-08 20:59:06 +0400
commit5f40c0e9a5b5665e559b441c7659050ff861931d (patch)
treea1ab1fe645405794053a16a1f2d0c6ea5b1d3839 /release/scripts/startup/bl_operators/add_mesh_torus.py
parent51ead63ae6a9e032af892058f132f12933f4c138 (diff)
- operator presets now work in the 3D view as well as the file selector.
to enable from python: bl_options = {'REGISTER', 'UNDO', 'PRESET'} from C: ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_PRESET; - added context member 'active_operator' - enable this for 'Add Torus' for testing.
Diffstat (limited to 'release/scripts/startup/bl_operators/add_mesh_torus.py')
-rw-r--r--release/scripts/startup/bl_operators/add_mesh_torus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/add_mesh_torus.py b/release/scripts/startup/bl_operators/add_mesh_torus.py
index 056b3478c2b..5b28cdf44ae 100644
--- a/release/scripts/startup/bl_operators/add_mesh_torus.py
+++ b/release/scripts/startup/bl_operators/add_mesh_torus.py
@@ -86,7 +86,7 @@ class AddTorus(Operator):
'''Add a torus mesh'''
bl_idname = "mesh.primitive_torus_add"
bl_label = "Add Torus"
- bl_options = {'REGISTER', 'UNDO'}
+ bl_options = {'REGISTER', 'UNDO', 'PRESET'}
major_radius = FloatProperty(
name="Major Radius",