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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-04 10:08:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-04 10:08:14 +0400
commit7c5d6c9c39cb7caf1c334295e60f0454b270bfd2 (patch)
tree0e1b52fbc6797c657affd0a1b89393938fe8db9d /source
parentff7ae1d4f4350445caceaf17194db3d03036f3d0 (diff)
workaround [#27276] Full Screen toggle for Save Screenshot ignored
don't show the option in the file sel, it only has effect when set before invoke.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/screen/screendump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screendump.c b/source/blender/editors/screen/screendump.c
index 7bc56879a0f..ba21a09cab2 100644
--- a/source/blender/editors/screen/screendump.c
+++ b/source/blender/editors/screen/screendump.c
@@ -182,6 +182,8 @@ static int screenshot_cancel(bContext *UNUSED(C), wmOperator *op)
void SCREEN_OT_screenshot(wmOperatorType *ot)
{
+ PropertyRNA *prop;
+
ot->name= "Save Screenshot"; /* weak: opname starting with 'save' makes filewindow give save-over */
ot->idname= "SCREEN_OT_screenshot";
@@ -193,7 +195,8 @@ void SCREEN_OT_screenshot(wmOperatorType *ot)
ot->flag= 0;
WM_operator_properties_filesel(ot, FOLDERFILE|IMAGEFILE, FILE_SPECIAL, FILE_SAVE, WM_FILESEL_FILEPATH);
- RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "");
+ prop= RNA_def_boolean(ot->srna, "full", 1, "Full Screen", "");
+ RNA_def_property_flag(prop, PROP_HIDDEN); /* hide because once the file sel is displayed, the option no longer does anything */
}
/* *************** screenshot movie job ************************* */