update templates for registration changes

This commit is contained in:
Campbell Barton
2011-02-12 08:04:32 +00:00
parent 0a4eb24ca0
commit 9bd57cd302
10 changed files with 99 additions and 3 deletions

View File

@@ -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()