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
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2022-04-25 17:00:09 +0300
committerSybren A. Stüvel <sybren@blender.org>2022-04-25 17:00:15 +0300
commitc2751f8a11fa6bd37b2c092ce8f893bc843bfe1e (patch)
treed072f0e5c489cdb0cb15ee78891e4162f147a5fa /source/blender/editors/sculpt_paint/paint_vertex.cc
parent654bc35bc8057d03e4f04057a71079e9365f3832 (diff)
Cleanup: fix unused variable warning in `paint_vertex.cc`
No functional changes.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_vertex.cc')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.cc b/source/blender/editors/sculpt_paint/paint_vertex.cc
index 8b62dd33961..58e45f360d6 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.cc
+++ b/source/blender/editors/sculpt_paint/paint_vertex.cc
@@ -3396,18 +3396,17 @@ static void do_vpaint_brush_smear(bContext *C,
* paint each loop belonging to this vert. */
for (int j = 0; j < gmap->vert_to_poly[v_index].count; j++) {
const int p_index = gmap->vert_to_poly[v_index].indices[j];
- const int l_index = gmap->vert_to_loop[v_index].indices[j];
int elem_index;
if constexpr (domain == ATTR_DOMAIN_POINT) {
elem_index = v_index;
}
else {
+ const int l_index = gmap->vert_to_loop[v_index].indices[j];
elem_index = l_index;
+ BLI_assert(me->mloop[l_index].v == v_index);
}
- BLI_assert(me->mloop[l_index].v == v_index);
-
const MPoly *mp = &me->mpoly[p_index];
if (!use_face_sel || mp->flag & ME_FACE_SEL) {
/* Get the previous element color */