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:
parent
c6a831cfbc
commit
04e816bd11
Notes:
blender-bot
2023-02-14 11:21:43 +01:00
Referenced by issue #86432, crash due to unconnected nodes
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue