diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2012-05-23 16:45:07 +0400 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2012-05-23 16:45:07 +0400 |
commit | 9b45f607c927028960406bb558a9fe7d9f67c0ba (patch) | |
tree | c1cbc53f1f5fe5a609531eb36748fdb2866c9957 /source/blender/compositor/nodes/COM_DefocusNode.cpp | |
parent | 487fa055def89911d7b4e982717afd9f0c56ca58 (diff) |
cleanup relink code
Diffstat (limited to 'source/blender/compositor/nodes/COM_DefocusNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_DefocusNode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/nodes/COM_DefocusNode.cpp b/source/blender/compositor/nodes/COM_DefocusNode.cpp index 77f7baaef98..e4e19fdbe27 100644 --- a/source/blender/compositor/nodes/COM_DefocusNode.cpp +++ b/source/blender/compositor/nodes/COM_DefocusNode.cpp @@ -52,7 +52,7 @@ void DefocusNode::convertToOperations(ExecutionSystem *graph, CompositorContext SetValueOperation *maxRadius = new SetValueOperation(); maxRadius->setValue(data->maxblur); MathMinimumOperation *minimize = new MathMinimumOperation(); - this->getInputSocket(1)->relinkConnections(multiply->getInputSocket(0), true, 1, graph); + this->getInputSocket(1)->relinkConnections(multiply->getInputSocket(0), 1, graph); addLink(graph, multiplier->getOutputSocket(), multiply->getInputSocket(1)); addLink(graph, maxRadius->getOutputSocket(), minimize->getInputSocket(1)); addLink(graph, multiply->getOutputSocket(), minimize->getInputSocket(0)); @@ -68,7 +68,7 @@ void DefocusNode::convertToOperations(ExecutionSystem *graph, CompositorContext converter->setCameraObject(camob); converter->setfStop(data->fstop); converter->setMaxRadius(data->maxblur); - this->getInputSocket(1)->relinkConnections(converter->getInputSocket(0), true, 1, graph); + this->getInputSocket(1)->relinkConnections(converter->getInputSocket(0), 1, graph); graph->addOperation(converter); radiusOperation = converter; } @@ -98,7 +98,7 @@ void DefocusNode::convertToOperations(ExecutionSystem *graph, CompositorContext if (data->gamco) { GammaCorrectOperation * correct = new GammaCorrectOperation(); GammaUncorrectOperation * inverse = new GammaUncorrectOperation(); - this->getInputSocket(0)->relinkConnections(correct->getInputSocket(0), 0, true, graph); + this->getInputSocket(0)->relinkConnections(correct->getInputSocket(0), 0, graph); addLink(graph, correct->getOutputSocket(), operation->getInputSocket(0)); addLink(graph, operation->getOutputSocket(), inverse->getInputSocket(0)); this->getOutputSocket()->relinkConnections(inverse->getOutputSocket()); @@ -106,7 +106,7 @@ void DefocusNode::convertToOperations(ExecutionSystem *graph, CompositorContext graph->addOperation(inverse); } else { - this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), 0, true, graph); + this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), 0, graph); this->getOutputSocket()->relinkConnections(operation->getOutputSocket()); } |