diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-27 05:20:24 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-27 05:20:24 +0300 |
commit | 904665f15b9a0bc165c6ee60f05f00d66c2ffc07 (patch) | |
tree | 97861f19c9fc3b4d9d904daccfe80e9c87ad9d81 /source/blender/makesdna | |
parent | 0bb36e9ced06b04b961300b21211f456c7035bcf (diff) |
[#20728] "Export UV Layout" overwrites existing files (without feedback)
The 'save over' popup was only appearing based on a string comparison of the operator name ("Save"). Changed this to use a hidden operator property: "check_existing". Python operators must
have this property for the file selector confirmation too.
This property can also be set to false, to prevent checking for existing files, useful in the File->Save menu item to prevent the dangerously missable confirmation popup.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 4a7866d7058..01b03477dbf 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -649,6 +649,9 @@ enum FileSortTypeE { #define FILE_LOADLIB 1 #define FILE_MAIN 2 #define FILE_LOADFONT 3 +/* filesel op property -> action */ +#define FILE_OPEN 0 +#define FILE_SAVE 1 /* sfile->flag and simasel->flag */ #define FILE_SHOWSHORT 1 |