Skip to content
Snippets Groups Projects
Commit 0dad0490 authored by Campbell Barton's avatar Campbell Barton
Browse files

all modules now register and unregister without errors.

parent 6420f4bf
No related branches found
No related tags found
No related merge requests found
......@@ -248,8 +248,8 @@ def unregister():
pass
if __name__ == "__main__":
# unregistering is only done automatically when run as add-on
bpy.types.unregister(OBJECT_PT_icons)
bpy.types.unregister(CONSOLE_HT_icons)
bpy.utils.unregister_class(OBJECT_PT_icons)
bpy.utils.unregister_class(CONSOLE_HT_icons)
bpy.utils.unregister_module(__name__)
......
......@@ -54,6 +54,5 @@ def register():
def unregister():
bpy.utils.unregister_class(AddHuman)
#bpy.types.unregister(AddHuman)
bpy.types.INFO_MT_armature_add.remove(menu_func)
......@@ -242,7 +242,7 @@ def register():
def unregister():
bpy.types.unregister(DATA_PT_rigify_buttons)
bpy.types.unregister(BONE_PT_rigify_buttons)
bpy.types.unregister(Generate)
bpy.types.unregister(Sample)
bpy.utils.unregister_class(DATA_PT_rigify_buttons)
bpy.utils.unregister_class(BONE_PT_rigify_buttons)
bpy.utils.unregister_class(Generate)
bpy.utils.unregister_class(Sample)
......@@ -765,7 +765,7 @@ def unregister():
item.idname = 'pose.copy'
break
for menu in _layer_menus:
bpy.types.unregister(menu)
bpy.utils.unregister_class(menu)
bpy.types.DATA_PT_texface.remove(_add_tface_buttons)
km = bpy.context.window_manager.keyconfigs.active.keymaps['Mesh']
for kmi in km.items:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment