From 2b4ea3c38a8a19e3e299d1f9965a7a6701cc005b Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 21 Jun 2023 22:36:58 +0200 Subject: [PATCH] Fix #109209: crash when attributes are propagated to non-first output geometry This wasn't covered by my other tests because in usually the geometry output that anonymous attributes are propagated to is the first output, thus the index was 0. In this case it didn't make it difference whether the `.index_range()` call was there are not. --- source/blender/nodes/intern/geometry_nodes_lazy_function.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc index c5414573359..65c630e42d9 100644 --- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc +++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc @@ -1843,7 +1843,7 @@ struct GeometryNodesLazyFunctionGraphBuilder { } for (const int caller_propagation_index : - attribute_inferencing_.propagated_output_geometry_indices) + attribute_inferencing_.propagated_output_geometry_indices.index_range()) { const int group_output_index = attribute_inferencing_.propagated_output_geometry_indices[caller_propagation_index];