From 04e816bd11a1424f51703fc0921dda843f0ff41e Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 9 Mar 2021 16:59:58 +0100 Subject: Fix T86432: missing check if attribute is available This failed when the component did exist, but did not contain any data. --- source/blender/nodes/geometry/nodes/node_geo_point_translate.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source') diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc b/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc index cb3cd012c77..015f4cd38e7 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_point_translate.cc @@ -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) { -- cgit v1.2.3