Cleanup: Use Span to iterate over nodes instead of ListBase

Since 90ea1b7643, there is always a span of nodes
available at runtime. This is easier to read and write.
This commit is contained in:
2022-12-02 11:12:51 -06:00
parent c5e71cebaa
commit 5b8e2ebd97
25 changed files with 129 additions and 119 deletions

View File

@@ -2627,7 +2627,7 @@ void DepsgraphRelationBuilder::build_nodetree(bNodeTree *ntree)
RELATION_FLAG_NO_FLUSH);
}
/* nodetree's nodes... */
LISTBASE_FOREACH (bNode *, bnode, &ntree->nodes) {
for (bNode *bnode : ntree->all_nodes()) {
build_idproperties(bnode->prop);
LISTBASE_FOREACH (bNodeSocket *, socket, &bnode->inputs) {
build_nodetree_socket(socket);