diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-04 05:57:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-04 06:02:59 +0300 |
commit | 26f1a5e2c8d705443ab51a608b5721b8f0178de3 (patch) | |
tree | 5792c70225c9733719ea76c3628d6a651f5a233f /source/blender/blenloader/intern | |
parent | 5950b3ab739f0d57cdac44c57d4448c0a5dbebb2 (diff) |
Fix T90417: font loading creates duplicate ID names
Also repair any errors in existing files.
Error from e0dd3fe5872ba37ff188e292b80b46fcf8df413c.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c index 9aec18ea279..7b5f95408ea 100644 --- a/source/blender/blenloader/intern/versioning_300.c +++ b/source/blender/blenloader/intern/versioning_300.c @@ -691,6 +691,11 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) } } + if (!MAIN_VERSION_ATLEAST(bmain, 300, 16)) { + ListBase *lb = which_libbase(bmain, ID_VF); + BKE_main_id_repair_duplicate_names_listbase(lb); + } + /** * Versioning code until next subversion bump goes here. * |