Fix: Avoid creating uninitialized attribute in distribute points node

Interpolation from edge attributes is unsupported, and the data
of the new point attribute was uninitialized. As a fix, just avoid
interpolating edge attributes in the first place.
This commit is contained in:
Hans Goudey
2023-06-13 14:09:11 -04:00
parent 6948a2d613
commit 89232d52db

View File

@@ -305,6 +305,9 @@ BLI_NOINLINE static void propagate_existing_attributes(
if (!src) {
continue;
}
if (src.domain == ATTR_DOMAIN_EDGE) {
continue;
}
GSpanAttributeWriter dst = point_attributes.lookup_or_add_for_write_only_span(
attribute_id, ATTR_DOMAIN_POINT, output_data_type);