Fix T89851: Geometry nodes: wrongly detected "Node group has unidentified

nodes or sockets" error

rBfe22635bf664 introduced a utility to check for this (but it was always
returning true).

This wasnt a problem in master (since it is unused there), but in the
2.93 branch, this utility is actually used and the error results in all
geometry nodetrees to appear with the "Node group has unidentified nodes
or sockets" message (and being unusable).

Now return false in has_undefined_nodes_or_sockets if all nodes and
sockets have been successfully checked.

This commit then needs to end up in the 2.93 branch.

Maniphest Tasks: T89851

Differential Revision: https://developer.blender.org/D11911
This commit is contained in:
Philipp Oeser 2021-07-14 11:39:38 +02:00
parent 192f0c9e17
commit 5583d51773
Notes: blender-bot 2023-02-13 18:10:25 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #89851, [2.93.2] Geometry nodes: wrongly detected "Node group has unidentified nodes or sockets" error
1 changed files with 1 additions and 1 deletions

View File

@ -461,7 +461,7 @@ bool NodeTreeRef::has_undefined_nodes_or_sockets() const
return true;
}
}
return true;
return false;
}
std::string NodeTreeRef::to_dot() const