Fix #106131: invalid selection after select random curves operator #106172
|
@ -34,7 +34,7 @@ bke::SpanAttributeWriter<float> float_selection_ensure(Curves &curves_id)
|
||||||
attributes.add(".selection",
|
attributes.add(".selection",
|
||||||
domain,
|
domain,
|
||||||
CD_PROP_FLOAT,
|
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");
|
return curves.attributes_for_write().lookup_for_write_span<float>(".selection");
|
||||||
|
|
Loading…
Reference in New Issue