[Bf-extensions-cvs] [4f2529b] master: Fix bad code in unresgister of space_view3d_copy_attribute.
Bastien Montagne
noreply at git.blender.org
Fri Nov 18 14:16:16 CET 2016
Commit: 4f2529b587c4bd5be8364082e958e1a72a1ffd02
Author: Bastien Montagne
Date: Fri Nov 18 14:11:23 2016 +0100
Branches: master
https://developer.blender.org/rBA4f2529b587c4bd5be8364082e958e1a72a1ffd02
Fix bad code in unresgister of space_view3d_copy_attribute.
===================================================================
M space_view3d_copy_attributes.py
===================================================================
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index 91f6ea6..5461002 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()
More information about the Bf-extensions-cvs
mailing list