Fix #92406: Cannot set new hotkey to transfer sculpt mode
New shortcut assigned to operator goes inside "object mode" keymap intead of `non-modal`. Now fixed with extra condition, since this operator works in non-object modes. Reason it fails with "object mode" keymap is the keymap->poll function `object_mode_poll`. Pull Request: https://projects.blender.org/blender/blender/pulls/133796
This commit is contained in:
committed by
Harley Acheson
parent
9ddf63aa83
commit
dc90b65689
@@ -264,7 +264,7 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
|
||||
}
|
||||
else if (STRPREFIX(opname, "OBJECT_OT")) {
|
||||
/* Exception, this needs to work outside object mode too. */
|
||||
if (STRPREFIX(opname, "OBJECT_OT_mode_set")) {
|
||||
if (STRPREFIX(opname, "OBJECT_OT_mode_set") || STRPREFIX(opname, "OBJECT_OT_transfer_mode")) {
|
||||
km = WM_keymap_find_all(wm, "Object Non-modal", SPACE_EMPTY, RGN_TYPE_WINDOW);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user