From 1b7ceb0aff2751c14e5f0b58591413bb9cb6fcc3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 17 Apr 2020 19:17:00 +1000 Subject: [PATCH] Fix normal smoothing for light positioning gizmo --- source/blender/editors/object/object_transform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 7b3955a0cf8..b3d76382d26 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -1893,9 +1893,9 @@ static int object_transform_axis_target_modal(bContext *C, wmOperator *op, const normal_found = true; /* cheap attempt to smooth normals out a bit! */ - const uint ofs = 2; - for (uint x = -ofs; x <= ofs; x += ofs / 2) { - for (uint y = -ofs; y <= ofs; y += ofs / 2) { + const int ofs = 2; + for (int x = -ofs; x <= ofs; x += ofs / 2) { + for (int y = -ofs; y <= ofs; y += ofs / 2) { if (x != 0 && y != 0) { int mval_ofs[2] = {event->mval[0] + x, event->mval[1] + y}; float n[3];