Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_userdef.c
| Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Lines | #define FROM_DEFAULT_V4_UCHAR(member) copy_v4_v4_uchar(btheme->member, U_theme_default.member) | ||||
| } | } | ||||
| if (!USER_VERSION_ATLEAST(283, 11)) { | if (!USER_VERSION_ATLEAST(283, 11)) { | ||||
| FROM_DEFAULT_V4_UCHAR(tui.transparent_checker_primary); | FROM_DEFAULT_V4_UCHAR(tui.transparent_checker_primary); | ||||
| FROM_DEFAULT_V4_UCHAR(tui.transparent_checker_secondary); | FROM_DEFAULT_V4_UCHAR(tui.transparent_checker_secondary); | ||||
| btheme->tui.transparent_checker_size = U_theme_default.tui.transparent_checker_size; | btheme->tui.transparent_checker_size = U_theme_default.tui.transparent_checker_size; | ||||
| } | } | ||||
| FROM_DEFAULT_V4_UCHAR(collection_color[0].color); | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[1].color); | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[2].color); | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[3].color); | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[4].color); | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[5].color); | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[6].color); | |||||
| FROM_DEFAULT_V4_UCHAR(collection_color[7].color); | |||||
Severin: Just use a for-loop. | |||||
| /** | /** | ||||
| * 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: | ||||
| * - #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 582 Lines • Show Last 20 Lines | |||||
Just use a for-loop.