Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-10-01 17:21:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-10-01 17:21:10 +0300
commit2bddf44b117b0dc0d2443a0d21ab2d1103e87e5e (patch)
treef3fbb7df20d084c69b6628829d751f3caf3660a9 /source
parent96561dbdf04a7d994c9ecbcbc4acd84302976c69 (diff)
Cleanup: avoid multiple active vertex loops
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index ed468a7e41a..e89b1104720 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3725,6 +3725,7 @@ static void pose_brush_grow_factor_task_cb_ex(void *__restrict userdata,
PoseGrowFactorTLSData *gftd = tls->userdata_chunk;
SculptSession *ss = data->ob->sculpt;
const char symm = data->sd->paint.symmetry_flags & PAINT_SYMM_AXIS_ALL;
+ const float *active_co = sculpt_active_vertex_co_get(ss);
PBVHVertexIter vd;
BKE_pbvh_vertex_iter_begin(ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE)
{
@@ -3740,8 +3741,7 @@ static void pose_brush_grow_factor_task_cb_ex(void *__restrict userdata,
sculpt_vertex_neighbors_iter_end(ni);
if (max != data->prev_mask[vd.index]) {
data->pose_factor[vd.index] = max;
- if (check_vertex_pivot_symmetry(
- vd.co, sculpt_vertex_co_get(ss, sculpt_active_vertex_get(ss)), symm)) {
+ if (check_vertex_pivot_symmetry(vd.co, active_co, symm)) {
add_v3_v3(gftd->pos_avg, vd.co);
gftd->tot_pos_avg++;
}