From bf2e59e1dd58fffd7c155ca1c58e18b977f8dcaf Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Tue, 18 Jun 2024 21:49:35 +0200 Subject: [PATCH] Fix: Relax face set occasionally too strong In a previous refactor, the iteration variable was shadowed resulting in the extra strength always being applied. Pull Request: https://projects.blender.org/blender/blender/pulls/123350 --- source/blender/editors/sculpt_paint/sculpt_face_set.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.cc b/source/blender/editors/sculpt_paint/sculpt_face_set.cc index d24a9fa93d3..f397ae7475a 100644 --- a/source/blender/editors/sculpt_paint/sculpt_face_set.cc +++ b/source/blender/editors/sculpt_paint/sculpt_face_set.cc @@ -472,10 +472,10 @@ void do_draw_face_sets_brush(const Sculpt &sd, Object &ob, Span node if (ss.cache->alt_smooth) { SCULPT_boundary_info_ensure(ob); - for (int i = 0; i < 4; i++) { + for (int iteration = 0; iteration < 4; iteration++) { threading::parallel_for(nodes.index_range(), 1, [&](const IndexRange range) { for (const int i : range) { - do_relax_face_sets_brush_task(ob, brush, i, nodes[i]); + do_relax_face_sets_brush_task(ob, brush, iteration, nodes[i]); } }); }