Fix #104698: Assert and failure adding shortcuts to curves sculpt tools
The keymap name in `WM_keymap_guess_from_context` didn't match the name of the keymap in the Blender default keymap (`km_sculpt_curves`). Fix by changing the utility function to match the keymap name. Before right clicking on any tool in curves sculpt mode gave an assert, now it shows a context menu. Pull Request #104791
This commit is contained in:
@@ -141,7 +141,7 @@ wmKeyMap *WM_keymap_guess_from_context(const bContext *C)
|
||||
km_id = "Grease Pencil Stroke Vertex Mode";
|
||||
break;
|
||||
case CTX_MODE_SCULPT_CURVES:
|
||||
km_id = "Curves Sculpt";
|
||||
km_id = "Sculpt Curves";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user