Fix for node tree ID tagging in new depsgraph.

Nested node trees are not handled in BKE_main_id_tag_all.
This commit is contained in:
Lukas Tönne 2016-05-11 10:51:10 +02:00
parent b4b269f38e
commit 18e5e2fa1a
Notes: blender-bot 2023-02-14 04:56:36 +01:00
Referenced by commit ea41207c3b, Fix depsgraph tagging during the relations build pass.
1 changed files with 7 additions and 0 deletions

View File

@ -248,6 +248,13 @@ void DepsgraphNodeBuilder::build_scene(Main *bmain, Scene *scene)
* needed.
*/
BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false);
/* XXX nested node trees are not included in tag-clearing above,
* so we need to do this manually.
*/
FOREACH_NODETREE(bmain, nodetree, id) {
if (id != (ID *)nodetree)
nodetree->id.tag &= ~LIB_TAG_DOIT;
} FOREACH_NODETREE_END
/* scene ID block */
add_id_node(&scene->id);