Geometry Nodes: fix evaluating field to span

This commit is contained in:
Jacques Lucke 2021-09-22 18:44:35 +02:00
parent 3180c6b4a7
commit bd1c4a781f
1 changed files with 2 additions and 1 deletions

View File

@ -468,7 +468,8 @@ Vector<const GVArray *> evaluate_fields(ResourceScope &scope,
/* Still have to copy over the data in the destination provided by the caller. */
if (output_varray->is_span()) {
/* Materialize into a span. */
computed_varray->materialize_to_uninitialized(output_varray->get_internal_span().data());
computed_varray->materialize_to_uninitialized(mask,
output_varray->get_internal_span().data());
}
else {
/* Slower materialize into a different structure. */