Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Makarov <jenkm>2020-01-21 13:37:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-21 13:42:34 +0300
commit5a29356b4d6b512bcb7faee85b0fe360437ac227 (patch)
treebae2aac209344512daed26d5a84662e054605c72 /source/blender/editors/mesh
parent9f66062da73e954f7c00acd9d5d5ead9ac1e8863 (diff)
Fix T61259: Loop Cut with Trackpad or MagicMouse
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_loopcut.c2
1 files changed, 1 insertions, 1 deletions
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;