catch exception and report an error when failing to write exr files - was crashing...
[blender-staging.git] / source / blender / editors / space_image / image_ops.c
index d58b78ff6a7db0e160045b01afb6a8c071951ba6..f96a8ea4d847d2f45a0ae6f65ae9341d7ae83a41 100644 (file)
@@ -1069,7 +1069,7 @@ static void save_image_doit(bContext *C, SpaceImage *sima, wmOperator *op, SaveI
                        Scene *scene= CTX_data_scene(C);
                        RenderResult *rr= BKE_image_acquire_renderresult(scene, ima);
                        if(rr) {
-                               RE_WriteRenderResult(rr, simopts->filepath, simopts->quality);
+                               RE_WriteRenderResult(op->reports, rr, simopts->filepath, simopts->quality);
                                ok= TRUE;
                        }
                        else {