Fix T61259: Loop Cut with Trackpad or MagicMouse

This commit is contained in:
Yevgeny Makarov 2020-01-21 21:37:42 +11:00 committed by Campbell Barton
parent 9f66062da7
commit 5a29356b4d
Notes: blender-bot 2023-02-14 10:48:33 +01:00
Referenced by issue #61259, macOS: CTRL+R and MagicMouse
1 changed files with 1 additions and 1 deletions

View File

@ -636,7 +636,7 @@ static int loopcut_modal(bContext *C, wmOperator *op, const wmEvent *event)
if (cuts != lcd->cuts) {
/* allow zero so you can backspace and type in a value
* otherwise 1 as minimum would make more sense */
lcd->cuts = clamp_i(cuts, 0, SUBD_CUTS_MAX);
lcd->cuts = clamp_f(cuts, 0, SUBD_CUTS_MAX);
RNA_int_set(op->ptr, "number_cuts", (int)lcd->cuts);
ringsel_find_edge(lcd, (int)lcd->cuts);
show_cuts = true;