Geometry Nodes: fix combining field inputs
This was an oversight in rB7b88a4a3ba7eb9b839afa6c42d070812a3af7997.
This commit is contained in:
parent
8709cbb73e
commit
8ba6302696
Notes:
blender-bot
2023-02-14 11:29:52 +01:00
Referenced by issue #93969, Geometry Nodes: Performance regression and node tree evaluation difference
|
@ -571,7 +571,7 @@ static std::shared_ptr<const FieldInputs> combine_field_inputs(Span<GField> fiel
|
|||
/* None of the field depends on an input. */
|
||||
return {};
|
||||
}
|
||||
/* Check if all inputs are in the */
|
||||
/* Check if all inputs are in the candidate. */
|
||||
Vector<const FieldInput *> inputs_not_in_candidate;
|
||||
for (const GField &field : fields) {
|
||||
const std::shared_ptr<const FieldInputs> &field_inputs = field.node().field_inputs();
|
||||
|
@ -604,7 +604,7 @@ static std::shared_ptr<const FieldInputs> combine_field_inputs(Span<GField> fiel
|
|||
FieldOperation::FieldOperation(const MultiFunction &function, Vector<GField> inputs)
|
||||
: FieldNode(false), function_(&function), inputs_(std::move(inputs))
|
||||
{
|
||||
field_inputs_ = combine_field_inputs(inputs);
|
||||
field_inputs_ = combine_field_inputs(inputs_);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue