diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-21 13:50:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-21 13:50:15 +0300 |
commit | f10d190240a135f4e26058eb49a787f9178ceb71 (patch) | |
tree | e189525b2785f7945800cd5c8c921ae7cf2ab8fb | |
parent | 463941b6a17369d9cdc8030c03b261763837b13d (diff) | |
parent | 5a29356b4d6b512bcb7faee85b0fe360437ac227 (diff) |
Merge branch 'blender-v2.82-release'
-rw-r--r-- | source/blender/editors/mesh/editmesh_loopcut.c | 2 |
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; |