Fix #106131: invalid selection after select random curves operator #106172

Merged
Jacques Lucke merged 1 commits from JacquesLucke/blender:select-random-error into blender-v3.5-release 2023-03-27 13:38:46 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ bke::SpanAttributeWriter<float> float_selection_ensure(Curves &curves_id)
attributes.add(".selection",
domain,
CD_PROP_FLOAT,
bke::AttributeInitVArray(VArray<float>::ForSingle(size, 1.0f)));
bke::AttributeInitVArray(VArray<float>::ForSingle(1.0f, size)));
}
return curves.attributes_for_write().lookup_for_write_span<float>(".selection");