Fix T57328: 'Save As Copy' prints warning
This commit is contained in:
parent
02e6916890
commit
64a6c78a9a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user