[Bf-blender-cvs] [721581c3661] functions: fix

Jacques Lucke noreply at git.blender.org
Wed Mar 27 12:19:07 CET 2019


Commit: 721581c36613161ec8c44486ee7c5c9194de0b10
Author: Jacques Lucke
Date:   Wed Mar 27 12:16:45 2019 +0100
Branches: functions
https://developer.blender.org/rB721581c36613161ec8c44486ee7c5c9194de0b10

fix

===================================================================

M	source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp

===================================================================

diff --git a/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp b/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp
index a36dee7f13b..6241207dd94 100644
--- a/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp
+++ b/source/blender/functions/backends/tuple_call/fgraph_tuple_call.cpp
@@ -563,9 +563,12 @@ namespace FN {
 
 					for (uint output_index = 0; output_index < node->output_amount(); output_index++) {
 						Socket output_socket = node->output(output_index);
-						Tuple::relocate_element(
-							fn_out, output_index,
-							temp_storage, socket_indices.lookup(output_socket));
+						uint temp_index = socket_indices.lookup_default(output_socket, -1);
+						if (temp_index != -1) {
+							Tuple::relocate_element(
+								fn_out, output_index,
+								temp_storage, temp_index);
+						}
 					}
 
 					FN_TUPLE_STACK_FREE(fn_in);



More information about the Bf-blender-cvs mailing list