diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_selection.cc b/source/blender/editors/sculpt_paint/curves_sculpt_selection.cc index f0760dc5635..73472e86023 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_selection.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_selection.cc @@ -34,7 +34,7 @@ bke::SpanAttributeWriter float_selection_ensure(Curves &curves_id) attributes.add(".selection", domain, CD_PROP_FLOAT, - bke::AttributeInitVArray(VArray::ForSingle(size, 1.0f))); + bke::AttributeInitVArray(VArray::ForSingle(1.0f, size))); } return curves.attributes_for_write().lookup_for_write_span(".selection");