Cleanup: make group/collection versioning a bit more clear.
This commit is contained in:
@@ -5679,16 +5679,14 @@ static void direct_link_collection(FileData *fd, Collection *collection)
|
||||
|
||||
#ifdef USE_COLLECTION_COMPAT_28
|
||||
/* This runs before the very first doversion. */
|
||||
collection->collection = newdataadr(fd, collection->collection);
|
||||
if (collection->collection != NULL) {
|
||||
collection->collection = newdataadr(fd, collection->collection);
|
||||
direct_link_scene_collection(fd, collection->collection);
|
||||
}
|
||||
|
||||
collection->view_layer = newdataadr(fd, collection->view_layer);
|
||||
if (collection->view_layer != NULL) {
|
||||
collection->view_layer = newdataadr(fd, collection->view_layer);
|
||||
if (collection->view_layer != NULL) {
|
||||
direct_link_view_layer(fd, collection->view_layer);
|
||||
}
|
||||
direct_link_view_layer(fd, collection->view_layer);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -297,6 +297,7 @@ static void do_version_group_collection_to_collection(Main *bmain, Collection *g
|
||||
}
|
||||
|
||||
group->collection = NULL;
|
||||
group->view_layer = NULL;
|
||||
id_fake_user_set(&group->id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user