diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-05 15:59:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-05 15:59:15 +0400 |
commit | 1f53674bb8d34c3fff836e064679d5e845eaff4b (patch) | |
tree | d8d8f5521837958b012e765fd3d07e271b43c319 /source/blender/editors/mesh | |
parent | 48013e8a9c82f4178ab054fa35bdbd9248417409 (diff) |
avoid divide by zero with grid fill (when there is no selection)
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index fa65fb88315..9e5782c12f2 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -3002,7 +3002,7 @@ static int edbm_fill_grid_exec(bContext *C, wmOperator *op) } offset = RNA_property_int_get(op->ptr, prop_offset); - offset = mod_i(offset, clamp); + offset = clamp ? mod_i(offset, clamp) : 0; /* in simple cases, move selection for tags, but also support more advanced cases */ edbm_fill_grid_prepare(em->bm, offset, &span, calc_span); |