Depsgraph: Ignore text datablocks from nodes
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 6 Dec 2017 10:54:52 +0000 (11:54 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 6 Dec 2017 10:54:52 +0000 (11:54 +0100)
Those are not part of dependency graph, but still could be referenced from
the tree.

source/blender/depsgraph/intern/builder/deg_builder_nodes.cc

index 7e437d97b5746d770dca11b492f90c1366431291..fdeeb0de16f4b73a67c9e6b6bd157b894f0be90b 100644 (file)
@@ -984,6 +984,9 @@ void DepsgraphNodeBuilder::build_nodetree(bNodeTree *ntree)
                         * pipeline. No need to build dependencies for them here.
                         */
                }
+               else if (id_type == ID_TXT) {
+                       /* Ignore script nodes. */
+               }
                else if (bnode->type == NODE_GROUP) {
                        bNodeTree *group_ntree = (bNodeTree *)id;
                        if ((group_ntree->id.tag & LIB_TAG_DOIT) == 0) {