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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-11-18 16:11:23 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-11-18 16:11:23 +0300
commit4f2529b587c4bd5be8364082e958e1a72a1ffd02 (patch)
tree474804aab017e3067843302f38f7d3a278c36916 /space_view3d_copy_attributes.py
parent71daaea8cd689acdcc958a8c711a5b64156165f3 (diff)
Fix bad code in unresgister of space_view3d_copy_attribute.
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r--space_view3d_copy_attributes.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index 91f6ea6c..5461002d 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -798,9 +798,7 @@ def register():
def unregister():
- bpy.utils.unregister_module(__name__)
-
- ''' mostly to remove the keymap '''
+ # mostly to remove the keymap
kc = bpy.context.window_manager.keyconfigs.addon
if kc:
kms = kc.keymaps['Pose']
@@ -809,8 +807,6 @@ def unregister():
item.properties.name == 'VIEW3D_MT_posecopypopup':
item.idname = 'pose.copy'
break
- for menu in _layer_menus:
- bpy.utils.unregister_class(menu)
km = kc.keymaps['Mesh']
for kmi in km.keymap_items:
if kmi.idname == 'wm.call_menu':
@@ -823,5 +819,7 @@ def unregister():
if kmi.properties.name == 'VIEW3D_MT_copypopup':
km.keymap_items.remove(kmi)
+ bpy.utils.unregister_module(__name__)
+
if __name__ == "__main__":
register()