Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2021-09-06 07:05:07 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-09-06 07:05:50 +0300
commit58632a7f3c0f1be6cc860c7cad9c41ba43e6454f (patch)
tree20c38d707348e7365728a3c92728d6a8acf909a3 /source/blender/blenloader
parent91bca410c0e08c6d1cd227336df91faddab7a767 (diff)
UI: Blend Preview Thumbnails Showing Workspace
This adds an option to use a capture of the entire main window as the blend file preview thumbnail. See D10492 for details and examples. Differential Revision: https://developer.blender.org/D10492 Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index 0042ff29dc2..19f6c1cbbf6 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -885,6 +885,14 @@ void blo_do_versions_userdef(UserDef *userdef)
BKE_addon_ensure(&userdef->addons, "pose_library");
}
+ if (!USER_VERSION_ATLEAST(300, 21)) {
+ /* Deprecated userdef->flag USER_SAVE_PREVIEWS */
+ userdef->file_preview_type = (userdef->flag & USER_FLAG_UNUSED_5) ? USER_FILE_PREVIEW_CAMERA :
+ USER_FILE_PREVIEW_NONE;
+ /* Clear for reuse. */
+ userdef->flag &= ~USER_FLAG_UNUSED_5;
+ }
+
/**
* Versioning code until next subversion bump goes here.
*