[Bf-blender-cvs] [ce86a518b92] temp-geometry-nodes-fields--fields: Fix problem building variables for function inuts
Hans Goudey
noreply at git.blender.org
Sat Aug 28 20:29:30 CEST 2021
Commit: ce86a518b92fd18e8db7f11448e42e00d0f8258c
Author: Hans Goudey
Date: Sat Aug 28 13:29:22 2021 -0500
Branches: temp-geometry-nodes-fields--fields
https://developer.blender.org/rBce86a518b92fd18e8db7f11448e42e00d0f8258c
Fix problem building variables for function inuts
===================================================================
M source/blender/functions/intern/field.cc
===================================================================
diff --git a/source/blender/functions/intern/field.cc b/source/blender/functions/intern/field.cc
index 39a56b1aeaa..19c43111be8 100644
--- a/source/blender/functions/intern/field.cc
+++ b/source/blender/functions/intern/field.cc
@@ -63,7 +63,7 @@ static void add_field_variables_recursive(const Field &field,
else {
const FieldFunction &function = field.function();
for (const Field &input_field : function.inputs()) {
- add_field_variables_recursive(input_field, builder, variable_map);
+ add_field_variables_recursive(input_field, builder, variable_map); /* TODO: Use stack. */
}
/* Add the immediate inputs to this field, which were added earlier in the
@@ -71,7 +71,6 @@ static void add_field_variables_recursive(const Field &field,
Vector<MFVariable *> inputs;
for (const Field &input_field : function.inputs()) {
MFVariable &input = get_field_variable(input_field, variable_map);
- builder.add_input_parameter(input.data_type());
inputs.append(&input);
}
More information about the Bf-blender-cvs
mailing list