Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_userdef.c
| Show All 25 Lines | |||||
| #include "BKE_colorband.h" | #include "BKE_colorband.h" | ||||
| #include "BKE_idprop.h" | #include "BKE_idprop.h" | ||||
| #include "BKE_keyconfig.h" | #include "BKE_keyconfig.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_preferences.h" | #include "BKE_preferences.h" | ||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "GPU_platform.h" | |||||
| #include "readfile.h" /* Own include. */ | #include "readfile.h" /* Own include. */ | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "wm_event_types.h" | #include "wm_event_types.h" | ||||
| /* Don't use translation strings in versioning! | /* Don't use translation strings in versioning! | ||||
| * These depend on the preferences already being read. | * These depend on the preferences already being read. | ||||
| * If this is important we can set the translations as part of versioning preferences, | * If this is important we can set the translations as part of versioning preferences, | ||||
| ▲ Show 20 Lines • Show All 719 Lines • ▼ Show 20 Lines | BKE_keyconfig_pref_filter_items(userdef, | ||||
| keymap_item_update_tweak_event, | keymap_item_update_tweak_event, | ||||
| NULL); | NULL); | ||||
| } | } | ||||
| if (!USER_VERSION_ATLEAST(302, 11)) { | if (!USER_VERSION_ATLEAST(302, 11)) { | ||||
| userdef->dupflag |= USER_DUP_CURVES | USER_DUP_POINTCLOUD; | userdef->dupflag |= USER_DUP_CURVES | USER_DUP_POINTCLOUD; | ||||
| } | } | ||||
| /* Set GPU backend to OpenGL. */ | |||||
| if (!USER_VERSION_ATLEAST(305, 4)) { | |||||
| userdef->gpu_backend = GPU_BACKEND_OPENGL; | |||||
| } | |||||
| /** | /** | ||||
| * 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. | ||||
| Show All 30 Lines | |||||