Fix T56255: Crash w/ collection access from Python

This commit is contained in:
2018-08-07 12:45:01 +10:00
parent faf43ff9ad
commit 3d083f376b

View File

@@ -6495,6 +6495,8 @@ static void direct_link_scene(FileData *fd, Scene *sce)
if (sce->master_collection) {
sce->master_collection = newdataadr(fd, sce->master_collection);
direct_link_collection(fd, sce->master_collection);
/* Needed because this is an ID outside of Main. */
sce->master_collection->id.py_instance = NULL;
}
/* insert into global old-new map for reading without UI (link_global accesses it again) */