Fix crash when linking.

Stupid mistake in yesterday's own refactoring of readfile code...
This commit is contained in:
2020-02-07 10:58:18 +01:00
parent 192314b9d3
commit 753323af15

View File

@@ -10194,14 +10194,14 @@ static void expand_id_private_id(FileData *fd, Main *mainvar, ID *id)
/* Handle 'private IDs'. */
bNodeTree *nodetree = ntreeFromID(id);
if (nodetree != NULL) {
expand_id(fd, mainvar, id);
expand_id(fd, mainvar, &nodetree->id);
expand_nodetree(fd, mainvar, nodetree);
}
if (GS(id->name) == ID_SCE) {
Scene *scene = (Scene *)id;
if (scene->master_collection != NULL) {
expand_id(fd, mainvar, id);
expand_id(fd, mainvar, &scene->master_collection->id);
expand_collection(fd, mainvar, scene->master_collection);
}
}