Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-01-25 00:50:23 +0300
committerTon Roosendaal <ton@blender.org>2006-01-25 00:50:23 +0300
commitf0dae325c30b53bbd1c46bd39be91749aa6712ff (patch)
tree6b17a9afd0a41ce0bb169cbefee04479df3e9373 /source/blender/src/writeimage.c
parent3909f1d4a31bcb7badf77ade8890293b48b4b6d7 (diff)
Orange: enabled compositing in render pipeline.
- New Node "Composite" is output node that puts composited result back in render pipeline. - This then also displays in the render window while editing - But, only with Scene buttons option "Do Compositor" set - Then, just press F12 or render anims to see the magic! For clarity, the former 'Output" node is renamed to "Viewer".
Diffstat (limited to 'source/blender/src/writeimage.c')
-rw-r--r--source/blender/src/writeimage.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/src/writeimage.c b/source/blender/src/writeimage.c
index 1e89c8e8bba..808c10c4a17 100644
--- a/source/blender/src/writeimage.c
+++ b/source/blender/src/writeimage.c
@@ -88,7 +88,7 @@ static void save_rendered_image_cb(char *name)
{
char str[FILE_MAXDIR+FILE_MAXFILE];
- if(BLI_testextensie(str,".blend")) {
+ if(BLI_testextensie(name,".blend")) {
error("Wrong filename");
return;
}
@@ -102,16 +102,17 @@ static void save_rendered_image_cb(char *name)
BLI_convertstringcode(str, G.sce, G.scene->r.cfra);
if(saveover(str)) {
- RenderResult *rr= RE_GetResult(RE_GetRender("Render"));
- RenderLayer *rl= rr->layers.first;
+ RenderResult rres;
ImBuf *ibuf;
+ RE_GetResultImage(RE_GetRender("Render"), &rres);
+
waitcursor(1); /* from screen.c */
- ibuf= IMB_allocImBuf(rr->rectx, rr->recty, G.scene->r.planes, 0, 0);
- ibuf->rect= rr->rect32;
- ibuf->rect_float= rl->rectf;
- ibuf->zbuf_float= rl->rectz;
+ ibuf= IMB_allocImBuf(rres.rectx, rres.recty, G.scene->r.planes, 0, 0);
+ ibuf->rect= rres.rect32;
+ ibuf->rect_float= rres.rectf;
+ ibuf->zbuf_float= rres.rectz;
BKE_write_ibuf(ibuf, str, G.scene->r.imtype, G.scene->r.subimtype, G.scene->r.quality);
IMB_freeImBuf(ibuf); /* imbuf knows rects are not part of ibuf */