Fix preference for file browser and new window not being saved

The subversion should just be bumped for cases like this, it doesn't cost
anything and functioning correctly is most important.
This commit is contained in:
Brecht Van Lommel 2019-09-18 16:28:17 +02:00
parent 6278ab59bc
commit 4dbea85a3f
2 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,7 @@
* \note Use #STRINGIFY() rather than defining with quotes.
*/
#define BLENDER_VERSION 281
#define BLENDER_SUBVERSION 11
#define BLENDER_SUBVERSION 12
/** Several breakages with 280, e.g. collections vs layers. */
#define BLENDER_MINVERSION 280
#define BLENDER_MINSUBVERSION 0

View File

@ -615,13 +615,16 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
BKE_addon_remove_safe(&userdef->addons, "io_scene_x3d");
}
if (!USER_VERSION_ATLEAST(281, 12)) {
userdef->render_display_type = USER_RENDER_DISPLAY_WINDOW;
userdef->filebrowser_display_type = USER_TEMP_SPACE_DISPLAY_WINDOW;
}
/**
* Include next version bump.
*/
{
/* pass */
userdef->render_display_type = USER_RENDER_DISPLAY_WINDOW;
userdef->filebrowser_display_type = USER_TEMP_SPACE_DISPLAY_WINDOW;
}
if (userdef->pixelsize == 0.0f) {