Fix T41534: Bevel practically unusable interactively if set to percent amount type.
Turned out to be a clean/fix up of modal bevel tool, percentage mode handling was broken, numinput handling was broken, etc. Also added a way to switch between bevel types (modes) with M key, and tweaked a bit numinput code to return early in case of 'char' event with ctrl modifier.
This commit is contained in:
@@ -442,6 +442,13 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
/* Up to this point, if we have a ctrl modifier, skip.
|
||||
* This allows to still access most of modals' shortcuts even in numinput mode.
|
||||
*/
|
||||
if (!updated && event->ctrl) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((!utf8_buf || !utf8_buf[0]) && ascii[0]) {
|
||||
/* Fallback to ascii. */
|
||||
utf8_buf = ascii;
|
||||
|
||||
Reference in New Issue
Block a user