diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-09 18:59:58 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-09 19:00:17 +0300 |
commit | 04e816bd11a1424f51703fc0921dda843f0ff41e (patch) | |
tree | 07295a5f9389ad436a3629ce62bedd486741e136 /source | |
parent | c6a831cfbc9b24fa8b1ed4852178c139e6ed79a6 (diff) |
Fix T86432: missing check if attribute is available
This failed when the component did exist, but did not contain any data.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_point_translate.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |