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:
authorCampbell Barton <ideasman42@gmail.com>2011-02-11 04:29:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-11 04:29:13 +0300
commit61d5b389e2424ff22576cc07b99260f952f6f97b (patch)
tree70707fe8017ba115d22ad723451ec9183cc0d242 /object_add_chain.py
parentbdfca1046394902777ebe075b37597d416d634a9 (diff)
add in module register calls (first pass, batch replace, will test each addon next).
Diffstat (limited to 'object_add_chain.py')
-rw-r--r--object_add_chain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/object_add_chain.py b/object_add_chain.py
index bd6696e4..edc3278d 100644
--- a/object_add_chain.py
+++ b/object_add_chain.py
@@ -143,11 +143,15 @@ def menu_func(self, context):
def register():
+ bpy.utils.register_module(__name__)
+
# Add "Chain" menu to the "Add Mesh" menu.
bpy.types.INFO_MT_mesh_add.append(menu_func)
def unregister():
+ bpy.utils.unregister_module(__name__)
+
# Remove "Chain" menu from the "Add Mesh" menu.
bpy.types.INFO_MT_mesh_add.remove(menu_func)