Band-aid fix crash when appending an overridden collection from T103062.
This commit addresses that specific case related to Collection ID type, using a band-aid fix which is hopefully safe enough. T103062 will remain open as a TODO task for a proper fix later.
This commit is contained in:
parent
87cf495860
commit
cb93433a56
|
@ -3921,6 +3921,11 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
|
|||
BKE_lib_override_library_main_validate(bfd->main, fd->reports->reports);
|
||||
BKE_lib_override_library_main_update(bfd->main);
|
||||
|
||||
/* FIXME Temporary 'fix' to a problem in how temp ID are copied in
|
||||
* `BKE_lib_override_library_main_update`, see T103062.
|
||||
* Proper fix involves first addressing T90610. */
|
||||
BKE_main_collections_parent_relations_rebuild(bfd->main);
|
||||
|
||||
fd->reports->duration.lib_overrides = PIL_check_seconds_timer() -
|
||||
fd->reports->duration.lib_overrides;
|
||||
}
|
||||
|
@ -4543,6 +4548,11 @@ static void library_link_end(Main *mainl, FileData **fd, const int flag)
|
|||
|
||||
BKE_main_id_tag_all(mainvar, LIB_TAG_NEW, false);
|
||||
|
||||
/* FIXME Temporary 'fix' to a problem in how temp ID are copied in
|
||||
* `BKE_lib_override_library_main_update`, see T103062.
|
||||
* Proper fix involves first addressing T90610. */
|
||||
BKE_main_collections_parent_relations_rebuild(mainvar);
|
||||
|
||||
/* Make all relative paths, relative to the open blend file. */
|
||||
fix_relpaths_library(BKE_main_blendfile_path(mainvar), mainvar);
|
||||
|
||||
|
|
Loading…
Reference in New Issue