Fix (unreported): missing null check
A crash happened when `instance_id_attribute` further down in the function was null. This issue was probably introduced when the id attribute starting using generic attribute handling.
This commit is contained in:
parent
d812e46f40
commit
74fa4ee92b
|
@ -173,6 +173,9 @@ static void add_instances_from_component(InstancesComponent &instances,
|
|||
const AttributeDomain domain = ATTR_DOMAIN_POINT;
|
||||
|
||||
const int domain_size = src_geometry.attribute_domain_size(domain);
|
||||
if (domain_size == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
VArray<float3> positions = src_geometry.attribute_get_for_read<float3>(
|
||||
"position", domain, {0, 0, 0});
|
||||
|
|
Loading…
Reference in New Issue