diff options
Diffstat (limited to 'source/blender/compositor/nodes/COM_ValueNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_ValueNode.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/compositor/nodes/COM_ValueNode.cpp b/source/blender/compositor/nodes/COM_ValueNode.cpp index ed4440aa099..62a312da67c 100644 --- a/source/blender/compositor/nodes/COM_ValueNode.cpp +++ b/source/blender/compositor/nodes/COM_ValueNode.cpp @@ -29,11 +29,12 @@ ValueNode::ValueNode(bNode *editorNode) : Node(editorNode) /* pass */ } -void ValueNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context) +void ValueNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const { SetValueOperation *operation = new SetValueOperation(); - OutputSocket *output = this->getOutputSocket(0); - output->relinkConnections(operation->getOutputSocket()); + NodeOutput *output = this->getOutputSocket(0); operation->setValue(output->getEditorValueFloat()); - graph->addOperation(operation); + converter.addOperation(operation); + + converter.mapOutputSocket(output, operation->getOutputSocket()); } |