[Bf-blender-cvs] [5a29356b4d6] blender-v2.82-release: Fix T61259: Loop Cut with Trackpad or MagicMouse

Yevgeny Makarov noreply at git.blender.org
Tue Jan 21 11:46:20 CET 2020


Commit: 5a29356b4d6b512bcb7faee85b0fe360437ac227
Author: Yevgeny Makarov
Date:   Tue Jan 21 21:37:42 2020 +1100
Branches: blender-v2.82-release
https://developer.blender.org/rB5a29356b4d6b512bcb7faee85b0fe360437ac227

Fix T61259: Loop Cut with Trackpad or MagicMouse

===================================================================

M	source/blender/editors/mesh/editmesh_loopcut.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list