diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-29 15:43:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-29 15:53:37 +0300 |
commit | 475a07cd0c67c4a72bb042ee5eb2af730bddb9cd (patch) | |
tree | 63300f6ec632f59a18ceef437c9114b9e3981b27 /source/blender/blenloader/intern | |
parent | 3b6e4cf7cec8845cf839f10d241c1dcc81eb98b2 (diff) |
Fix duplicate brushes from recent startup files
Default versioning caused duplicates when the startup was re-saved.
See c305759762aa3
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 7c9f627c3f7..c5c234580e6 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -2783,6 +2783,11 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } + if (!MAIN_VERSION_ATLEAST(bmain, 280, 43)) { + ListBase *lb = which_libbase(bmain, ID_BR); + BKE_main_id_repair_duplicate_names_listbase(lb); + } + { /* Versioning code until next subversion bump goes here. */ } |