Fix: anonymous attribute output requested even though it's not used

The code removed here was intended to be an optimization that
avoids creating an additional node to join multiple attribute sets.
However, that optimization did not work, because it did not take
into account whether the single attribute set is required or not.
This commit is contained in:
Jacques Lucke 2023-01-28 14:55:39 +01:00
parent 904357d67a
commit b2534fb866
1 changed files with 0 additions and 3 deletions

View File

@ -2523,9 +2523,6 @@ struct GeometryNodesLazyFunctionGraphBuilder {
if (attribute_set_sockets.is_empty()) {
return nullptr;
}
if (attribute_set_sockets.size() == 1) {
return attribute_set_sockets[0];
}
Vector<lf::OutputSocket *, 16> key;
key.extend(attribute_set_sockets);