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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2010-12-28 13:39:27 +0300
committerTon Roosendaal <ton@blender.org>2010-12-28 13:39:27 +0300
commit3c96b0050003d841b81887d3d8a8b8bdc2b4bfbc (patch)
tree3c02c57bcbab6c3a49c7307691939d4028281b5e /source
parentd44436ebf2e8316b726391c3b2ee23da7361d88b (diff)
Bugreport, IRC
Compositor: "Read & Compo Full Sample Buffers" option stopped after 1 pass; the break callback was returning '1' falsely. Also made it show "wait cursor" again, since it doesn't run in thread nor updates UI while compositing buffers. Check console for progress for now.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_node/node_edit.c4
-rw-r--r--source/blender/render/intern/source/pipeline.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index c0125f67d87..7db20966a8b 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -1935,12 +1935,12 @@ static int node_read_fullsamplelayers_exec(bContext *C, wmOperator *UNUSED(op))
Scene *curscene= CTX_data_scene(C);
Render *re= RE_NewRender(curscene->id.name);
-// WM_cursor_wait(1);
+ WM_cursor_wait(1);
RE_MergeFullSample(re, bmain, curscene, snode->nodetree);
snode_notify(C, snode);
-// WM_cursor_wait(0);
+ WM_cursor_wait(0);
return OPERATOR_FINISHED;
}
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c
index 5df593e945e..83b61c31dd9 100644
--- a/source/blender/render/intern/source/pipeline.c
+++ b/source/blender/render/intern/source/pipeline.c
@@ -2338,11 +2338,15 @@ static void do_merge_fullsample(Render *re, bNodeTree *ntree)
BLI_rw_mutex_unlock(&re->resultmutex);
}
+/* called externally, via compositor */
void RE_MergeFullSample(Render *re, Main *bmain, Scene *sce, bNodeTree *ntree)
{
Scene *scene;
bNode *node;
+ /* default start situation */
+ G.afbreek= 0;
+
re->main= bmain;
/* first call RE_ReadRenderResult on every renderlayer scene. this creates Render structs */