Fix T41811: unreachable code in wm_keymap.c
There was also an issue with passing sl->spacetype here, for some reason...
This commit is contained in:
parent
e5b2e9cdd3
commit
fdb12ff564
Notes:
blender-bot
2023-02-14 10:37:49 +01:00
Referenced by issue #41811, unreachable code in wm_keymap.c
|
@ -1542,8 +1542,11 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
|
|||
else if (STRPREFIX(opname, "FONT_OT")) {
|
||||
km = WM_keymap_find_all(C, "Font", 0, 0);
|
||||
}
|
||||
/* Paint Face Mask */
|
||||
else if (STRPREFIX(opname, "PAINT_OT_face_select")) {
|
||||
km = WM_keymap_find_all(C, "Face Mask", 0, 0);
|
||||
}
|
||||
else if (STRPREFIX(opname, "PAINT_OT")) {
|
||||
|
||||
/* check for relevant mode */
|
||||
switch (CTX_data_mode_enum(C)) {
|
||||
case OB_MODE_WEIGHT_PAINT:
|
||||
|
@ -1557,10 +1560,6 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
|
|||
break;
|
||||
}
|
||||
}
|
||||
/* Paint Face Mask */
|
||||
else if (STRPREFIX(opname, "PAINT_OT_face_select")) {
|
||||
km = WM_keymap_find_all(C, "Face Mask", sl->spacetype, 0);
|
||||
}
|
||||
/* Timeline */
|
||||
else if (STRPREFIX(opname, "TIME_OT")) {
|
||||
km = WM_keymap_find_all(C, "Timeline", sl->spacetype, 0);
|
||||
|
|
Loading…
Reference in New Issue