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/blenkernel/intern/icons.cc
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/blenkernel/intern/icons.cc')
-rw-r--r--source/blender/blenkernel/intern/icons.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/icons.cc b/source/blender/blenkernel/intern/icons.cc
index 5a4b2448a73..ac45e57f413 100644
--- a/source/blender/blenkernel/intern/icons.cc
+++ b/source/blender/blenkernel/intern/icons.cc
@@ -634,7 +634,7 @@ void BKE_previewimg_blend_write(BlendWriter *writer, const PreviewImage *prv)
PreviewImage prv_copy = *prv;
/* don't write out large previews if not requested */
- if (!(U.flag & USER_SAVE_PREVIEWS)) {
+ if (U.file_preview_type == USER_FILE_PREVIEW_NONE) {
prv_copy.w[1] = 0;
prv_copy.h[1] = 0;
prv_copy.rect[1] = nullptr;