Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_userdef.c
| Show First 20 Lines • Show All 752 Lines • ▼ Show 20 Lines | if (!USER_VERSION_ATLEAST(283, 13)) { | ||||
| /* Clear this deprecated flag. */ | /* Clear this deprecated flag. */ | ||||
| userdef->transopts &= ~USER_DOTRANSLATE_DEPRECATED; | userdef->transopts &= ~USER_DOTRANSLATE_DEPRECATED; | ||||
| } | } | ||||
| if (!USER_VERSION_ATLEAST(290, 7)) { | if (!USER_VERSION_ATLEAST(290, 7)) { | ||||
| userdef->statusbar_flag = STATUSBAR_SHOW_VERSION; | userdef->statusbar_flag = STATUSBAR_SHOW_VERSION; | ||||
| } | } | ||||
| if (!USER_VERSION_ATLEAST(291, 1)) { | |||||
| if (userdef->collection_instance_empty_size == 0) { | |||||
| userdef->collection_instance_empty_size = 1.0f; | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Versioning code until next subversion bump goes here. | * Versioning code until next subversion bump goes here. | ||||
| * | * | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - #do_versions_theme in this file. | * - #do_versions_theme in this file. | ||||
| * - "versioning_{BLENDER_VERSION}.c" | * - "versioning_{BLENDER_VERSION}.c" | ||||
| * | * | ||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| if (userdef->collection_instance_empty_size == 0) { | |||||
| userdef->collection_instance_empty_size = 1.0f; | |||||
| } | |||||
| } | } | ||||
| if (userdef->pixelsize == 0.0f) { | if (userdef->pixelsize == 0.0f) { | ||||
| userdef->pixelsize = 1.0f; | userdef->pixelsize = 1.0f; | ||||
| } | } | ||||
| LISTBASE_FOREACH (bTheme *, btheme, &userdef->themes) { | LISTBASE_FOREACH (bTheme *, btheme, &userdef->themes) { | ||||
| do_versions_theme(userdef, btheme); | do_versions_theme(userdef, btheme); | ||||
| Show All 24 Lines | |||||