[Bf-blender-cvs] [3c4f6399d98] master: Fix T66628: "Auto Saved Modified Image" not working
Jacques Lucke
noreply at git.blender.org
Thu Jul 11 12:08:28 CEST 2019
Commit: 3c4f6399d987fb3f832ba3c1ca0fea9426d6d7f5
Author: Jacques Lucke
Date: Thu Jul 11 12:06:21 2019 +0200
Branches: master
https://developer.blender.org/rB3c4f6399d987fb3f832ba3c1ca0fea9426d6d7f5
Fix T66628: "Auto Saved Modified Image" not working
Reviewer: brecht
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 49b13da6b21..ef957fa03c5 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -2949,7 +2949,12 @@ static void wm_block_file_close_save(bContext *C, void *arg_block, void *arg_dat
UI_popup_block_close(C, win, arg_block);
if (save_images_when_file_is_closed) {
- if (!ED_image_should_save_modified(C)) {
+ if (ED_image_should_save_modified(C)) {
+ ReportList *reports = CTX_wm_reports(C);
+ ED_image_save_all_modified(C, reports);
+ WM_report_banner_show();
+ }
+ else {
execute_callback = false;
}
}
More information about the Bf-blender-cvs
mailing list