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>2010-03-01 03:03:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-03-01 03:03:51 +0300
commitfbb8672da459a027a7dd3ccb798b2f5db1c73c59 (patch)
tree1478a36908c3afb614e75ef7fac605589b7c753b /release/scripts/addons
parentc4f562476806f06a67b807cd03a9419082ae03e3 (diff)
replace operator options bl_undo and bl_register with bl_options
eg. bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'} This didnt exist when operators were originally wrapped.
Diffstat (limited to 'release/scripts/addons')
-rw-r--r--release/scripts/addons/add_mesh_gears.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/addons/add_mesh_gears.py b/release/scripts/addons/add_mesh_gears.py
index 45d5f9317e3..fc6f1e6e499 100644
--- a/release/scripts/addons/add_mesh_gears.py
+++ b/release/scripts/addons/add_mesh_gears.py
@@ -259,8 +259,7 @@ class AddGear(bpy.types.Operator):
'''Add a gear mesh.'''
bl_idname = "mesh.gear_add"
bl_label = "Add Gear"
- bl_register = True
- bl_undo = True
+ bl_options = {'REGISTER', 'UNDO'}
number_of_teeth = IntProperty(name="Number of Teeth",
description="Number of teeth on the gear",