When saving render result images from the image editor with
authorMatt Ebb <matt@mke3.net>
Wed, 20 Jun 2007 00:36:53 +0000 (00:36 +0000)
committerMatt Ebb <matt@mke3.net>
Wed, 20 Jun 2007 00:36:53 +0000 (00:36 +0000)
image->save as, default to the scene image type settings (just like
with F3: save rendered image).

Multilayer is still available in the list but most of the time,
it's not what you want by default. Too many times I've saved out a
render and frustratingly ended up with a huge 'filename.png.exr'.

source/blender/src/editsima.c

index 3f257bb848ff9e250ca25de22730b6612c39aa1e..94990b8a3936daa212ae8d570d4964a0f82069e8 100644 (file)
@@ -1808,7 +1808,7 @@ void save_as_image_sima(void)
                        if(ima->rr && !(ima->source==IMA_SRC_SEQUENCE && ima->type==IMA_TYPE_MULTILAYER))
                                G.sima->imtypenr= R_MULTILAYER;
                        else if(ima->type==IMA_TYPE_R_RESULT)
-                               G.sima->imtypenr= R_MULTILAYER;
+                               G.sima->imtypenr= G.scene->r.imtype;
                        else G.sima->imtypenr= BKE_ftype_to_imtype(ibuf->ftype);
                        
                        activate_fileselect_menu(FILE_SPECIAL, "Save Image", name, strp, &G.sima->imtypenr, save_image_doit);