diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-07 14:08:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-07 14:28:05 +0300 |
commit | 1b0dd5a2150c2207768ba74c1a25b842f3d4ece1 (patch) | |
tree | 8ab9418bf8e110942258a0135fbd39e1bf8103bb /source/blender/editors/sculpt_paint/paint_cursor.c | |
parent | ed779333bb82a483c3f7833b959610c08f0bacb7 (diff) |
Cleanup: style, spelling
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 4a552fb3744..d872356a083 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -1121,15 +1121,18 @@ static void cursor_draw_tiling_preview(const uint gpuattr, start[dim] = (bbMin[dim] - orgLoc[dim] - radius) / step[dim]; end[dim] = (bbMax[dim] - orgLoc[dim] + radius) / step[dim]; } - else + else { start[dim] = end[dim] = 0; + } } copy_v3_v3_int(cur, start); for (cur[0] = start[0]; cur[0] <= end[0]; cur[0]++) { for (cur[1] = start[1]; cur[1] <= end[1]; cur[1]++) { for (cur[2] = start[2]; cur[2] <= end[2]; cur[2]++) { - if (!cur[0] && !cur[1] && !cur[2]) - continue; /* skip tile at orgLoc, this was already handled before all others */ + if (!cur[0] && !cur[1] && !cur[2]) { + /* skip tile at orgLoc, this was already handled before all others */ + continue; + } tile_pass++; for (dim = 0; dim < 3; dim++) { location[dim] = cur[dim] * step[dim] + orgLoc[dim]; |