From 546b900194f0f0464d126e1e18ea4fc7c9b1c1ff Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Mon, 31 Aug 2020 10:14:40 -0300 Subject: Cleanup/Refactor: Split the snap to increments code Now we have a better distinction of what is snap to grid and what is snap to increments. The code also allows the implementation of mixed snap for these modes. --- source/blender/editors/transform/transform_mode_curveshrinkfatten.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/transform/transform_mode_curveshrinkfatten.c') diff --git a/source/blender/editors/transform/transform_mode_curveshrinkfatten.c b/source/blender/editors/transform/transform_mode_curveshrinkfatten.c index 84e4e950804..fd65b019fe0 100644 --- a/source/blender/editors/transform/transform_mode_curveshrinkfatten.c +++ b/source/blender/editors/transform/transform_mode_curveshrinkfatten.c @@ -53,7 +53,7 @@ static void applyCurveShrinkFatten(TransInfo *t, const int UNUSED(mval[2])) ratio = t->values[0]; - snapGridIncrement(t, &ratio); + transform_snap_increment(t, &ratio); applyNumInput(&t->num, &ratio); -- cgit v1.2.3