Fix T57328: 'Save As Copy' prints warning

This commit is contained in:
Campbell Barton 2018-10-22 14:51:06 +11:00
parent 02e6916890
commit 64a6c78a9a
Notes: blender-bot 2023-02-14 09:19:09 +01:00
Referenced by issue #57328, Save As Copy gives benign warning/error message with RNA_boolean_get
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}