diff options
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index f3f7ea608f5..da57f8805b6 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -1491,13 +1491,11 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) if (!MAIN_VERSION_ATLEAST(bmain, 292, 10)) { if (!DNA_struct_find(fd->filesdna, "NodeSetAlpha")) { - LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { - bNodeTree *nodetree = scene->nodetree; - if (nodetree == NULL) { + LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { + if (ntree->type != NTREE_COMPOSIT) { continue; } - - LISTBASE_FOREACH (bNode *, node, &nodetree->nodes) { + LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { if (node->type != CMP_NODE_SETALPHA) { continue; } |