diff options
author | Jacques Lucke <jacques@blender.org> | 2022-09-26 13:06:30 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-09-26 13:06:54 +0300 |
commit | b211540783651000b7a13e11b6a40a2f0b5a808e (patch) | |
tree | 63fdddf748f0f6711276b5f0b19a15edf7ba3981 /source/blender/blenloader/intern/versioning_300.cc | |
parent | fa1c214c5b2147f0127e6abf6aa844530fd4b9a2 (diff) |
Fix: bump subversion to avoid corrupted files
Replacing the transfer node breaks forward compatibility, so a version
bump is necessary to get a warning in older versions.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_300.cc')
-rw-r--r-- | source/blender/blenloader/intern/versioning_300.cc | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/source/blender/blenloader/intern/versioning_300.cc b/source/blender/blenloader/intern/versioning_300.cc index f2aa07b6678..f0ebc6c7942 100644 --- a/source/blender/blenloader/intern/versioning_300.cc +++ b/source/blender/blenloader/intern/versioning_300.cc @@ -3519,19 +3519,7 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) BKE_main_namemap_validate_and_fix(bmain); } - - /** - * Versioning code until next subversion bump goes here. - * - * \note Be sure to check when bumping the version: - * - "versioning_userdef.c", #blo_do_versions_userdef - * - "versioning_userdef.c", #do_versions_theme - * - * \note Keep this message at the bottom of the function. - */ - { - /* Keep this block, even when empty. */ - + if (!MAIN_VERSION_ATLEAST(bmain, 304, 1)) { /* Image generation information transferred to tiles. */ if (!DNA_struct_elem_find(fd->filesdna, "ImageTile", "int", "gen_x")) { LISTBASE_FOREACH (Image *, ima, &bmain->images) { @@ -3586,4 +3574,17 @@ void blo_do_versions_300(FileData *fd, Library *UNUSED(lib), Main *bmain) } FOREACH_NODETREE_END; } + + /** + * Versioning code until next subversion bump goes here. + * + * \note Be sure to check when bumping the version: + * - "versioning_userdef.c", #blo_do_versions_userdef + * - "versioning_userdef.c", #do_versions_theme + * + * \note Keep this message at the bottom of the function. + */ + { + /* Keep this block, even when empty. */ + } } |