Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_userdef.c
| Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | if (!USER_VERSION_ATLEAST(291, 2)) { | ||||
| /* The new defaults for the file browser theme are the same as | /* The new defaults for the file browser theme are the same as | ||||
| * the outliner's, and it's less disruptive to just copy them. */ | * the outliner's, and it's less disruptive to just copy them. */ | ||||
| copy_v4_v4_uchar(btheme->space_file.back, btheme->space_outliner.back); | copy_v4_v4_uchar(btheme->space_file.back, btheme->space_outliner.back); | ||||
| copy_v4_v4_uchar(btheme->space_file.row_alternate, btheme->space_outliner.row_alternate); | copy_v4_v4_uchar(btheme->space_file.row_alternate, btheme->space_outliner.row_alternate); | ||||
| FROM_DEFAULT_V4_UCHAR(space_image.grid); | FROM_DEFAULT_V4_UCHAR(space_image.grid); | ||||
| } | } | ||||
| if (!USER_VERSION_ATLEAST(291, 3)) { | |||||
| for (int i = 0; i < COLLECTION_COLOR_TOT; ++i) { | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[i].color); | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Versioning code until next subversion bump goes here. | * Versioning code until next subversion bump goes here. | ||||
Severin: Just use a for-loop. | |||||
| * | * | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - #BLO_version_defaults_userpref_blend in this file. | * - #BLO_version_defaults_userpref_blend 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. | ||||
| */ | */ | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 580 Lines • Show Last 20 Lines | |||||
Just use a for-loop.