Commit: 0a2a8d702ad28016eb73819dfd2be1b26f1cf05b Author: Hans Goudey Date: Fri Jun 3 13:41:09 2022 +0200 Branches: master https://developer.blender.org/rB0a2a8d702ad28016eb73819dfd2be1b26f1cf05b
Fix: Curves sculpt mode keymaps missing in preferences These changes make the curves sculpt mode keymap consistent with other modes. They now show up in the keymap, for potential editing of tool shortcuts, etc. I don't fully understand this system, but at least these changes should make it consistent. Differential Revision: https://developer.blender.org/D15112 =================================================================== M release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py M source/blender/windowmanager/intern/wm_keymap_utils.c =================================================================== diff --git a/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py b/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py index a648375557a..7172d7809f2 100644 --- a/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py +++ b/release/scripts/modules/bl_keymap_utils/keymap_hierarchy.py @@ -88,6 +88,10 @@ _km_hierarchy = [ _km_expand_from_toolsystem('VIEW_3D', 'SCULPT'), ]), + ('Sculpt Curves', 'EMPTY', 'WINDOW', [ + _km_expand_from_toolsystem('VIEW_3D', 'CURVES_SCULPT'), + ]), + ('Particle', 'EMPTY', 'WINDOW', [ _km_expand_from_toolsystem('VIEW_3D', 'PARTICLE'), ]), diff --git a/source/blender/windowmanager/intern/wm_keymap_utils.c b/source/blender/windowmanager/intern/wm_keymap_utils.c index 5a35570296a..531da3cf2e8 100644 --- a/source/blender/windowmanager/intern/wm_keymap_utils.c +++ b/source/blender/windowmanager/intern/wm_keymap_utils.c @@ -270,6 +270,9 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname) break; } } + else if (STRPREFIX(opname, "CURVES_SCULPT_OT")) { + km = WM_keymap_find_all(wm, "Sculpt Curves", 0, 0); + } else if (STRPREFIX(opname, "MBALL_OT")) { km = WM_keymap_find_all(wm, "Metaball", 0, 0); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs