Fix T60204: Crash when opening a File
Missing code from 3d083f37. Need to ensure that ID properties
are properly allocated and restored on read.
This commit is contained in:
@@ -6501,9 +6501,9 @@ static void direct_link_scene(FileData *fd, Scene *sce)
|
|||||||
|
|
||||||
if (sce->master_collection) {
|
if (sce->master_collection) {
|
||||||
sce->master_collection = newdataadr(fd, 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. */
|
/* Needed because this is an ID outside of Main. */
|
||||||
sce->master_collection->id.py_instance = NULL;
|
direct_link_id(fd, &sce->master_collection->id);
|
||||||
|
direct_link_collection(fd, sce->master_collection);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* insert into global old-new map for reading without UI (link_global accesses it again) */
|
/* insert into global old-new map for reading without UI (link_global accesses it again) */
|
||||||
|
|||||||
Reference in New Issue
Block a user