[Bf-blender-cvs] [26f8647feac] temp-geometry-nodes-fields--fields: Add name to variable outputs from functions

Hans Goudey noreply at git.blender.org
Mon Aug 30 22:25:11 CEST 2021


Commit: 26f8647feac6951d63e38633d6d1c6abe4ed7512
Author: Hans Goudey
Date:   Mon Aug 30 15:24:30 2021 -0500
Branches: temp-geometry-nodes-fields--fields
https://developer.blender.org/rB26f8647feac6951d63e38633d6d1c6abe4ed7512

Add name to variable outputs from functions

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

M	source/blender/functions/intern/multi_function_procedure_builder.cc

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

diff --git a/source/blender/functions/intern/multi_function_procedure_builder.cc b/source/blender/functions/intern/multi_function_procedure_builder.cc
index 1036bb5f720..3c088776bea 100644
--- a/source/blender/functions/intern/multi_function_procedure_builder.cc
+++ b/source/blender/functions/intern/multi_function_procedure_builder.cc
@@ -117,7 +117,8 @@ Vector<MFVariable *> MFProcedureBuilder::add_call(const MultiFunction &fn,
         break;
       }
       case MFParamType::Output: {
-        MFVariable &variable = procedure_->new_variable(param_type.data_type());
+        MFVariable &variable = procedure_->new_variable(param_type.data_type(),
+                                                        fn.param_name(param_index));
         instruction.set_param_variable(param_index, &variable);
         output_variables.append(&variable);
         break;



More information about the Bf-blender-cvs mailing list