diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-27 02:52:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-27 03:27:10 +0300 |
commit | 2f149ebbe946e9f4067a83455e855f4e7b1f8fab (patch) | |
tree | 016fc511aa3d3239d4171d9a1385237d24ddb47f /source/blender/editors/sculpt_paint/sculpt_pose.c | |
parent | f1fb3eb97540202fa9e3b07eda40fa2da6ed72b7 (diff) |
Cleanup: uppercase macros for sculpt iterators, add to clang-format
Also use sculpt prefix for SCULPT_CLAY_STABILIZER_LEN.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_pose.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_pose.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_pose.c b/source/blender/editors/sculpt_paint/sculpt_pose.c index f1c884f9897..8b842c07e79 100644 --- a/source/blender/editors/sculpt_paint/sculpt_pose.c +++ b/source/blender/editors/sculpt_paint/sculpt_pose.c @@ -209,12 +209,11 @@ static void pose_brush_grow_factor_task_cb_ex(void *__restrict userdata, float max = 0.0f; /* Grow the factor. */ - sculpt_vertex_neighbors_iter_begin(ss, vd.index, ni) - { + SCULPT_VERTEX_NEIGHBORS_ITER_BEGIN (ss, vd.index, ni) { float vmask_f = data->prev_mask[ni.index]; max = MAX2(vmask_f, max); } - sculpt_vertex_neighbors_iter_end(ni); + SCULPT_VERTEX_NEIGHBORS_ITER_END(ni); /* Keep the count of the vertices that where added to the factors in this grow iteration. */ if (max > data->prev_mask[vd.index]) { @@ -442,12 +441,11 @@ static void pose_brush_init_task_cb_ex(void *__restrict userdata, SculptVertexNeighborIter ni; float avg = 0.0f; int total = 0; - sculpt_vertex_neighbors_iter_begin(ss, vd.index, ni) - { + SCULPT_VERTEX_NEIGHBORS_ITER_BEGIN (ss, vd.index, ni) { avg += data->pose_factor[ni.index]; total++; } - sculpt_vertex_neighbors_iter_end(ni); + SCULPT_VERTEX_NEIGHBORS_ITER_END(ni); if (total > 0) { data->pose_factor[vd.index] = avg / total; |