From 879eca663a5608e290c8bdecaddfb3a30fd400a7 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 9 Jul 2024 17:19:00 -0400 Subject: [PATCH] Fix #124419: Smooth brush broken for larger meshes Simple mistake in 68d6bf56e51382320b0306de356c57b0a6946c34. --- source/blender/editors/sculpt_paint/brushes/smooth.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/brushes/smooth.cc b/source/blender/editors/sculpt_paint/brushes/smooth.cc index f4b2801cf9d..01ec71a3124 100644 --- a/source/blender/editors/sculpt_paint/brushes/smooth.cc +++ b/source/blender/editors/sculpt_paint/brushes/smooth.cc @@ -147,7 +147,10 @@ BLI_NOINLINE static void do_smooth_brush_mesh(const Sculpt &sd, verts, tls.vert_neighbors); smooth::neighbor_position_average_mesh( - positions_eval, verts, tls.vert_neighbors, new_positions); + positions_eval, + verts, + tls.vert_neighbors, + new_positions.as_mutable_span().slice(node_vert_offsets[i])); } });