Tie compositor will now update render result when changing node setup
[blender.git] / source / blender / compositor / nodes / COM_CompositorNode.cpp
index 8a84908f478c8c8f49943f3b8e87218838d41925..338741ebe79e417917ea9833054ef92117118541 100644 (file)
@@ -31,11 +31,14 @@ CompositorNode::CompositorNode(bNode *editorNode) : Node(editorNode)
 
 void CompositorNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context)
 {
+       bNode *editorNode = this->getbNode();
+
        InputSocket *imageSocket = this->getInputSocket(0);
        InputSocket *alphaSocket = this->getInputSocket(1);
        InputSocket *depthSocket = this->getInputSocket(2);
 
        CompositorOperation *compositorOperation = new CompositorOperation();
+       compositorOperation->setScene((Scene *) editorNode->id);
        compositorOperation->setRenderData(context->getRenderData());
        compositorOperation->setbNodeTree(context->getbNodeTree());
        imageSocket->relinkConnections(compositorOperation->getInputSocket(0), 0, graph);