Fix #36894: maya keymap delete/backspace would immediately delete a mesh element,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 Sep 2013 22:12:47 +0000 (22:12 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 Sep 2013 22:12:47 +0000 (22:12 +0000)
now it pops up the menu with delete options and dissolve so that there is a quick
key shortcut for those too.

release/scripts/presets/keyconfig/maya.py

index c22b2546309fa08386ef4793441437eef35a1baf..21fd757c4e5e42d56926bfd19431fc3031f92553 100644 (file)
@@ -655,8 +655,10 @@ kmi = km.keymap_items.new('mesh.duplicate_move', 'D', 'PRESS', ctrl=True)
 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
 kmi.properties.name = 'INFO_MT_mesh_add'
 kmi = km.keymap_items.new('mesh.dupli_extrude_cursor', 'MIDDLEMOUSE', 'CLICK', ctrl=True)
-kmi = km.keymap_items.new('mesh.delete', 'BACK_SPACE', 'PRESS')
-kmi = km.keymap_items.new('mesh.delete', 'DEL', 'PRESS')
+kmi = km.keymap_items.new('wm.call_menu', 'BACK_SPACE', 'PRESS')
+kmi.properties.name = 'VIEW3D_MT_edit_mesh_delete'
+kmi = km.keymap_items.new('wm.call_menu', 'DEL', 'PRESS')
+kmi.properties.name = 'VIEW3D_MT_edit_mesh_delete'
 kmi = km.keymap_items.new('mesh.knife_tool', 'LEFTMOUSE', 'PRESS', key_modifier='K')
 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS')
 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)