fix for enabling/disabing all contrib addons.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 4 Apr 2011 14:39:06 +0000 (14:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 4 Apr 2011 14:39:06 +0000 (14:39 +0000)
space_view3d_manipulator_Menu.py

index ca50aacc9c4c8472e6e25334d354b3314fe5600d..8685bb5f07931c6c0f4acb9cb429c94afeaf28a2 100644 (file)
@@ -102,7 +102,7 @@ class VIEW3D_MT_ManipulatorMenu(bpy.types.Menu):
             
 def register():
     km = bpy.context.window_manager.keyconfigs.default.keymaps['3D View Generic']
-    kmi = km.items.new('wm.call_menu', 'SPACE', 'PRESS' , ctrl=True)
+    kmi = km.keymap_items.new('wm.call_menu', 'SPACE', 'PRESS' , ctrl=True)
     kmi.properties.name = "VIEW3D_MT_ManipulatorMenu"
 
 
@@ -110,7 +110,7 @@ def unregister():
     for kmi in km.items:
         if kmi.idname == 'wm.call_menu':
             if kmi.properties.name == "VIEW3D_MT_ManipulatorMenu":
-                km.items.remove(kmi)
+                km.keymap_items.remove(kmi)
                 break
 
 if __name__ == "__main__":