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-02-12 11:04:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-12 11:04:32 +0300
commit9bd57cd302aefe540ebd28dcc2653c03883d426b (patch)
treee33a4c49f933db2c2926b8dad382e295d9056cd1 /release/scripts/templates/operator_mesh_add.py
parent0a4eb24ca0e0cf7e4e1b615e0929ec50bf030d74 (diff)
update templates for registration changes
Diffstat (limited to 'release/scripts/templates/operator_mesh_add.py')
-rw-r--r--release/scripts/templates/operator_mesh_add.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/templates/operator_mesh_add.py b/release/scripts/templates/operator_mesh_add.py
index db614f3a74c..77d172b3068 100644
--- a/release/scripts/templates/operator_mesh_add.py
+++ b/release/scripts/templates/operator_mesh_add.py
@@ -91,11 +91,16 @@ def menu_func(self, context):
def register():
+ bpy.utils.register_class(AddBox)
bpy.types.INFO_MT_mesh_add.append(menu_func)
def unregister():
+ bpy.utils.unregister_class(AddBox)
bpy.types.INFO_MT_mesh_add.remove(menu_func)
if __name__ == "__main__":
+ register()
+
+ # test call
bpy.ops.mesh.primitive_box_add()