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-06-23 23:43:48 +0400
committerTon Roosendaal <ton@blender.org>2006-06-23 23:43:48 +0400
commita1e77e239429c4e34b2509152af0efffef5d59e9 (patch)
treec14a53a04ff9f71f0dd0206b6ffd81c5669765ab /source/blender/src/editnode.c
parenta6aa6b9ff4d8cad4de48291a73e9b723b89366c0 (diff)
Bugfix 4424
When using the button in a RenderLayer node to render a single node, the new 'render to fullscreen' crashed in end. Reason; the node editor was still handling events after a render, as if the node editor was still open.
Diffstat (limited to 'source/blender/src/editnode.c')
-rw-r--r--source/blender/src/editnode.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/src/editnode.c b/source/blender/src/editnode.c
index 3bc8fd9eb6c..ce577a97d45 100644
--- a/source/blender/src/editnode.c
+++ b/source/blender/src/editnode.c
@@ -284,15 +284,20 @@ static void composit_node_event(SpaceNode *snode, short event)
bNode *node= BLI_findlink(&snode->edittree->nodes, event-B_NODE_EXEC);
if(node) {
NodeTagChanged(snode->edittree, node);
+
/* not the best implementation of the world... but we need it to work now :) */
- if(node->type==CMP_NODE_R_LAYERS && node->custom2)
+ if(node->type==CMP_NODE_R_LAYERS && node->custom2) {
composite_node_render(snode, node);
+ /* new event, a render can go fullscreen and open new window */
+ addqueue(curarea->win, UI_BUT_EVENT, B_NODE_TREE_EXEC);
+ }
else {
node= snode_get_editgroup(snode);
if(node)
NodeTagIDChanged(snode->nodetree, node->id);
+
+ snode_handle_recalc(snode);
}
- snode_handle_recalc(snode);
}
}
}