Fix: Save modified images during file close
Regressed in the following commit due to an inverted conditional: {rB1159b63a07fd2cbc7fc48e162d57721c9c85b3f6} Differential Revision: https://developer.blender.org/D15389
This commit is contained in:
parent
f256201876
commit
14980c9b3a
|
@ -2391,7 +2391,7 @@ bool ED_image_save_all_modified(const bContext *C, ReportList *reports)
|
|||
if (image_has_valid_path(ima)) {
|
||||
ImageSaveOptions opts;
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
if (!BKE_image_save_options_init(&opts, bmain, scene, ima, NULL, false, false)) {
|
||||
if (BKE_image_save_options_init(&opts, bmain, scene, ima, NULL, false, false)) {
|
||||
bool saved_successfully = BKE_image_save(reports, bmain, ima, NULL, &opts);
|
||||
ok = ok && saved_successfully;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue