diff options
author | Bastien Montagne <bastien@blender.org> | 2021-03-15 17:19:22 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-03-15 17:21:40 +0300 |
commit | 992abd4734a04b493e32ed900d4c7a786fd71549 (patch) | |
tree | dc3c81e254f87c55de3e9d7e8fc742ba88396046 /source/blender/blenloader/intern | |
parent | ab6e67767e730309e51fca7a7f086cbcbadb41a9 (diff) |
LibOverride: Add checks to address some degenerate blend file cases
Attempt to work around some full-corruption cases created at the studio.
Not clear how those were created, so not really fixing anything here,
just detecting and 'solving' as best as possible some high corruption of
local overrides.
This is good to have in general anyway, might help prevent further
corruption to happen too.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 369c10a65b4..f97f6f65551 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -4237,6 +4237,7 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath) * we can re-generate overrides from their references. */ if (fd->memfile == NULL) { /* Do not apply in undo case! */ + BKE_lib_override_library_main_validate(bfd->main, fd->reports); BKE_lib_override_library_main_update(bfd->main); } |