Commit: 04e816bd11a1424f51703fc0921dda843f0ff41e
Author: Jacques Lucke
Date: Tue Mar 9 16:59:58 2021 +0100
Branches: master
https://developer.blender.org/rB04e816bd11a1424f51703fc0921dda843f0ff41e
Fix T86432: missing check if attribute is available
This failed when the component did exist, but did not contain any data.
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_point_translate.cc
===================================================================
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) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs