diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-06 00:46:30 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-06 00:46:30 +0400 |
commit | 2f80c8db1172ae449d7908a4cb31d2425e5df823 (patch) | |
tree | c44a2faeaeecbdebd500221b0bd78d8d71db8a09 /io_coat3D | |
parent | ba7827ff27fc77a0fccfa2495b52ddfbb5744dd1 (diff) |
Addon updates for keymap changes.
[[Split portion of a mixed commit.]]
Diffstat (limited to 'io_coat3D')
-rw-r--r-- | io_coat3D/coat.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/io_coat3D/coat.py b/io_coat3D/coat.py index 4d967ce1..491da621 100644 --- a/io_coat3D/coat.py +++ b/io_coat3D/coat.py @@ -625,7 +625,8 @@ class VIEW3D_MT_ExtraMenu(bpy.types.Menu): def register(): bpy.utils.register_module(__name__) - km = bpy.context.window_manager.keyconfigs.default.keymaps['3D View'] + wm = bpy.context.window_manager + km = wm.keyconfigs.addon.keymaps.new(name='3D View', space_type='VIEW_3D') kmi = km.keymap_items.new('wm.call_menu2', 'Q', 'PRESS') kmi.properties.name = "VIEW3D_MT_Coat_Dynamic_Menu" @@ -633,7 +634,8 @@ def register(): def unregister(): bpy.utils.unregister_module(__name__) - km = bpy.context.window_manager.keyconfigs.default.keymaps['3D View'] + wm = bpy.context.window_manager + km = wm.keyconfigs.addon.keymaps['3D View'] for kmi in km.keymap_items: if kmi.idname == '': if kmi.properties.name == "VIEW3D_MT_Coat_Dynamic_Menu": |