diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-09-16 19:14:23 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-09-16 19:25:31 +0300 |
commit | 8d6b0eda5db45b63de8fccea1e3af41bf0bf09e0 (patch) | |
tree | 2f49c918125a63460b3878346425efcd44b799c4 /source/blender/makesdna/DNA_space_types.h | |
parent | 3618b2c3599d172cad3e0ee3fa7bd0eb886771a2 (diff) |
UI: Show in-/decrement buttons for exporters
As per Brecht's suggestion, use the check_existing property to control
visibility of the '+' and '-' icons. It is typically set for save
operations.
Adds another FileSelectParams flag (to avoid duplicated propertie
lookups) and removes the recently introduced
FileSelectParams.action_type again.
Fixes T69881.
Diffstat (limited to 'source/blender/makesdna/DNA_space_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index f212346f547..3be3daa8dfb 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -679,8 +679,7 @@ typedef struct FileSelectParams { short display_previous; /** Details toggles (file size, creation date, etc.) */ char details_flags; - /* The type of file action (opening or saving) */ - char action_type; /* eFileSel_Action */ + char _pad2; /** Filter when (flags & FILE_FILTER) is true. */ int filter; @@ -797,7 +796,8 @@ typedef enum eFileSel_Params_Flag { FILE_PARAMS_FLAG_UNUSED_9 = (1 << 9), /* cleared */ FILE_GROUP_INSTANCE = (1 << 10), FILE_SORT_INVERT = (1 << 11), - FILE_HIDE_TOOL_PROPS = (1 << 12) + FILE_HIDE_TOOL_PROPS = (1 << 12), + FILE_CHECK_EXISTING = (1 << 13), } eFileSel_Params_Flag; /* sfile->params->rename_flag */ |