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 06:40:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-11 06:40:27 +0300
commit0dad04903bdb39ff845a7452415a248d99f60ffa (patch)
treef4890434f42f9acf59f4cffb3c1cf770aab00ace
parent6420f4bf6ef0f700e8bc07be4cb52424e49f9197 (diff)
all modules now register and unregister without errors.
-rw-r--r--development_icon_get.py4
-rw-r--r--rigify/metarig_menu.py1
-rw-r--r--rigify/ui.py8
-rw-r--r--space_view3d_copy_attributes.py2
4 files changed, 7 insertions, 8 deletions
diff --git a/development_icon_get.py b/development_icon_get.py
index 6f052b05..f5267e25 100644
--- a/development_icon_get.py
+++ b/development_icon_get.py
@@ -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__)
diff --git a/rigify/metarig_menu.py b/rigify/metarig_menu.py
index 828708d0..56b82370 100644
--- a/rigify/metarig_menu.py
+++ b/rigify/metarig_menu.py
@@ -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)
diff --git a/rigify/ui.py b/rigify/ui.py
index 09257f59..4c3353bb 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -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)
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index 4c1babb1..8b622c3d 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -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: