From f909e279e779cec2e7709dfb06d72074a393ffe9 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 16 Feb 2024 12:54:27 -0500 Subject: [PATCH] Fix #118360: Fill mask operator doesn't initialize hidden vertices If there is no mask attribute yet and hidden vertices, the values for those vertices wouldn't be initialized. Fix by simply initializing the entire array when it's allocated. --- source/blender/editors/sculpt_paint/paint_mask.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/paint_mask.cc b/source/blender/editors/sculpt_paint/paint_mask.cc index faa5c855f51..99272543602 100644 --- a/source/blender/editors/sculpt_paint/paint_mask.cc +++ b/source/blender/editors/sculpt_paint/paint_mask.cc @@ -256,7 +256,7 @@ static void fill_mask_mesh(Object &object, const float value, const Span mask = attributes.lookup_or_add_for_write_only_span( + bke::SpanAttributeWriter mask = attributes.lookup_or_add_for_write_span( ".sculpt_mask", bke::AttrDomain::Point); threading::EnumerableThreadSpecific> all_index_data;