Bump file subversion after recent theme-related changes
This commit is contained in:
parent
675807e2b6
commit
17ccb409dd
|
@ -39,7 +39,7 @@ extern "C" {
|
|||
|
||||
/* Blender file format version. */
|
||||
#define BLENDER_FILE_VERSION BLENDER_VERSION
|
||||
#define BLENDER_FILE_SUBVERSION 2
|
||||
#define BLENDER_FILE_SUBVERSION 3
|
||||
|
||||
/* Minimum Blender version that supports reading file written with the current
|
||||
* version. Older Blender versions will test this and show a warning if the file
|
||||
|
|
|
@ -650,6 +650,15 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
|||
}
|
||||
}
|
||||
|
||||
if (!MAIN_VERSION_ATLEAST(bmain, 291, 3)) {
|
||||
LISTBASE_FOREACH (Collection *, collection, &bmain->collections) {
|
||||
collection->color_tag = COLLECTION_COLOR_NONE;
|
||||
}
|
||||
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
|
||||
scene->master_collection->color_tag = COLLECTION_COLOR_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Versioning code until next subversion bump goes here.
|
||||
*
|
||||
|
@ -661,11 +670,5 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
|
|||
*/
|
||||
{
|
||||
/* Keep this block, even when empty. */
|
||||
LISTBASE_FOREACH (Collection *, collection, &bmain->collections) {
|
||||
collection->color_tag = COLLECTION_COLOR_NONE;
|
||||
}
|
||||
LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) {
|
||||
scene->master_collection->color_tag = COLLECTION_COLOR_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -225,17 +225,7 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
|
|||
FROM_DEFAULT_V4_UCHAR(space_image.grid);
|
||||
}
|
||||
|
||||
/**
|
||||
* Versioning code until next subversion bump goes here.
|
||||
*
|
||||
* \note Be sure to check when bumping the version:
|
||||
* - #BLO_version_defaults_userpref_blend in this file.
|
||||
* - "versioning_{BLENDER_VERSION}.c"
|
||||
*
|
||||
* \note Keep this message at the bottom of the function.
|
||||
*/
|
||||
{
|
||||
/* Keep this block, even when empty. */
|
||||
if (!USER_VERSION_ATLEAST(291, 3)) {
|
||||
for (int i = 0; i < COLLECTION_COLOR_TOT; ++i) {
|
||||
FROM_DEFAULT_V4_UCHAR(collection_color[i].color);
|
||||
}
|
||||
|
@ -250,6 +240,19 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
|
|||
copy_v3_v3_uchar(btheme->space_node.grid, btheme->space_node.back);
|
||||
}
|
||||
|
||||
/**
|
||||
* Versioning code until next subversion bump goes here.
|
||||
*
|
||||
* \note Be sure to check when bumping the version:
|
||||
* - #BLO_version_defaults_userpref_blend in this file.
|
||||
* - "versioning_{BLENDER_VERSION}.c"
|
||||
*
|
||||
* \note Keep this message at the bottom of the function.
|
||||
*/
|
||||
{
|
||||
/* Keep this block, even when empty. */
|
||||
}
|
||||
|
||||
#undef FROM_DEFAULT_V4_UCHAR
|
||||
|
||||
#undef USER_VERSION_ATLEAST
|
||||
|
|
Loading…
Reference in New Issue