Fix T86432: missing check if attribute is available

This failed when the component did exist, but did not contain any data.
This commit is contained in:
2021-03-09 16:59:58 +01:00
parent c6a831cfbc
commit 04e816bd11

View File

@@ -46,6 +46,9 @@ static void execute_on_component(GeoNodeExecParams params, GeometryComponent &co
{
OutputAttributePtr position_attribute = component.attribute_try_get_for_output(
"position", ATTR_DOMAIN_POINT, CD_PROP_FLOAT3);
if (!position_attribute) {
return;
}
ReadAttributePtr attribute = params.get_input_attribute(
"Translation", component, ATTR_DOMAIN_POINT, CD_PROP_FLOAT3, nullptr);
if (!attribute) {