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:
Jesse Yurkovich 2022-07-07 02:36:54 -07:00
parent f256201876
commit 14980c9b3a
1 changed files with 1 additions and 1 deletions

View File

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