From a549bab37f9b04414b56fa6c27ccdc5b584d880b Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 16 Sep 2010 18:37:19 +0000 Subject: Related to #23861: addons now modify keyconfigs.default instead of keyconfigs.active, this is consistent with internal operators, and means you're not messing with user edited data in register/unregister. [[Split portion of a mixed commit.]] --- space_view3d_spacebar_menu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'space_view3d_spacebar_menu.py') diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py index 52be71cc..129988f7 100644 --- a/space_view3d_spacebar_menu.py +++ b/space_view3d_spacebar_menu.py @@ -1454,13 +1454,13 @@ class VIEW3D_MT_undoS(bpy.types.Menu): layout.operator("ed.redo", icon='TRIA_RIGHT') def register(): - km = bpy.context.window_manager.keyconfigs.active.keymaps['3D View'] + km = bpy.context.window_manager.keyconfigs.default.keymaps['3D View'] kmi = km.items.new('wm.call_menu', 'SPACE', 'PRESS') kmi.properties.name = "VIEW3D_MT_Space_Dynamic_Menu" def unregister(): - km = bpy.context.window_manager.keyconfigs.active.keymaps['3D View'] + km = bpy.context.window_manager.keyconfigs.default.keymaps['3D View'] for kmi in km.items: if kmi.idname == 'wm.call_menu': if kmi.properties.name == "VIEW3D_MT_Space_Dynamic_Menu": -- cgit v1.2.3