Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenloader / intern / readfile.c
index ab94b5334bdd39f62da185d69af00c3c2a0647c8..b878932e3dd7b02273aa6eb71baab602461cef71 100644 (file)
@@ -3343,6 +3343,10 @@ static void direct_link_nodetree(FileData *fd, bNodeTree *ntree)
                                        direct_link_curvemapping(fd, node->storage);
                                else if (ELEM(node->type, CMP_NODE_IMAGE, CMP_NODE_R_LAYERS, CMP_NODE_VIEWER, CMP_NODE_SPLITVIEWER))
                                        ((ImageUser *)node->storage)->ok = 1;
+                               else if (node->type==CMP_NODE_CRYPTOMATTE) {
+                                       NodeCryptomatte *nc = (NodeCryptomatte *) node->storage;
+                                       nc->matte_id = newdataadr(fd, nc->matte_id);
+                               }
                        }
                        else if ( ntree->type==NTREE_TEXTURE) {
                                if (node->type==TEX_NODE_CURVE_RGB || node->type==TEX_NODE_CURVE_TIME)