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/makesdna
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/makesdna')
-rw-r--r--source/blender/makesdna/DNA_userdef_types.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index 27376432092..b519a6014f0 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -924,8 +924,9 @@ typedef struct UserDef {
short sequencer_proxy_setup; /* eUserpref_SeqProxySetup */
float collection_instance_empty_size;
- char _pad10[3];
+ char _pad10[2];
+ char file_preview_type; /* eUserpref_File_Preview_Type */
char statusbar_flag; /* eUserpref_StatusBar_Flag */
struct WalkNavigation walk_navigation;
@@ -996,7 +997,7 @@ typedef enum eUserPref_Flag {
USER_NONUMPAD = (1 << 13),
USER_ADD_CURSORALIGNED = (1 << 14),
USER_FILECOMPRESS = (1 << 15),
- USER_SAVE_PREVIEWS = (1 << 16),
+ USER_FLAG_UNUSED_5 = (1 << 16), /* dirty */
USER_CUSTOM_RANGE = (1 << 17),
USER_ADD_EDITMODE = (1 << 18),
USER_ADD_VIEWALIGNED = (1 << 19),
@@ -1010,6 +1011,13 @@ typedef enum eUserPref_Flag {
USER_FLAG_UNUSED_27 = (1 << 27), /* dirty */
} eUserPref_Flag;
+/** #UserDef.file_preview_type */
+typedef enum eUserpref_File_Preview_Type {
+ USER_FILE_PREVIEW_NONE = 0,
+ USER_FILE_PREVIEW_SCREENSHOT,
+ USER_FILE_PREVIEW_CAMERA,
+} eUserpref_File_Preview_Type;
+
typedef enum eUserPref_PrefFlag {
USER_PREF_FLAG_SAVE = (1 << 0),
} eUserPref_PrefFlag;