From 5a29356b4d6b512bcb7faee85b0fe360437ac227 Mon Sep 17 00:00:00 2001 From: Yevgeny Makarov Date: Tue, 21 Jan 2020 21:37:42 +1100 Subject: Fix T61259: Loop Cut with Trackpad or MagicMouse --- source/blender/editors/mesh/editmesh_loopcut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/mesh') diff --git a/source/blender/editors/mesh/editmesh_loopcut.c b/source/blender/editors/mesh/editmesh_loopcut.c index fd5f35e7596..ef05eb4ffda 100644 --- a/source/blender/editors/mesh/editmesh_loopcut.c +++ b/source/blender/editors/mesh/editmesh_loopcut.c @@ -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; -- cgit v1.2.3