diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-22 06:51:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-22 06:51:06 +0300 |
commit | 64a6c78a9a2a789b5be6ba5e3162a10f90a2ac5c (patch) | |
tree | 045b63c4458f3c31830bf0b640de173d161a10dc | |
parent | 02e691689028f4dddaf7149ba23b9e27709e6688 (diff) |
Fix T57328: 'Save As Copy' prints warning
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 796103677bf..6182a8c5ec6 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -2093,6 +2093,7 @@ static int wm_save_as_mainfile_exec(bContext *C, wmOperator *op) Main *bmain = CTX_data_main(C); char path[FILE_MAX]; int fileflags; + const bool is_save_as = (op->type->invoke == wm_save_as_mainfile_invoke); save_set_compress(op); @@ -2124,7 +2125,7 @@ static int wm_save_as_mainfile_exec(bContext *C, wmOperator *op) WM_event_add_notifier(C, NC_WM | ND_FILESAVE, NULL); - if (RNA_boolean_get(op->ptr, "exit")) { + if (!is_save_as && RNA_boolean_get(op->ptr, "exit")) { wm_exit_schedule_delayed(C); } |