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:
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/coat.py6
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":