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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user