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:
authorJeroen Bakker <j.bakker@atmind.nl>2012-05-23 16:45:07 +0400
committerJeroen Bakker <j.bakker@atmind.nl>2012-05-23 16:45:07 +0400
commit9b45f607c927028960406bb558a9fe7d9f67c0ba (patch)
treec1cbc53f1f5fe5a609531eb36748fdb2866c9957 /source/blender/compositor/nodes/COM_ScaleNode.cpp
parent487fa055def89911d7b4e982717afd9f0c56ca58 (diff)
cleanup relink code
Diffstat (limited to 'source/blender/compositor/nodes/COM_ScaleNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_ScaleNode.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/compositor/nodes/COM_ScaleNode.cpp b/source/blender/compositor/nodes/COM_ScaleNode.cpp
index fe5862da018..d709781299f 100644
--- a/source/blender/compositor/nodes/COM_ScaleNode.cpp
+++ b/source/blender/compositor/nodes/COM_ScaleNode.cpp
@@ -42,9 +42,9 @@ void ScaleNode::convertToOperations(ExecutionSystem *graph, CompositorContext *
case CMP_SCALE_RELATIVE: {
ScaleOperation *operation = new ScaleOperation();
- inputSocket->relinkConnections(operation->getInputSocket(0), true, 0, graph);
- inputXSocket->relinkConnections(operation->getInputSocket(1), true, 1, graph);
- inputYSocket->relinkConnections(operation->getInputSocket(2), true, 2, graph);
+ inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
+ inputXSocket->relinkConnections(operation->getInputSocket(1), 1, graph);
+ inputYSocket->relinkConnections(operation->getInputSocket(2), 2, graph);
outputSocket->relinkConnections(operation->getOutputSocket(0));
graph->addOperation(operation);
}
@@ -53,7 +53,7 @@ void ScaleNode::convertToOperations(ExecutionSystem *graph, CompositorContext *
SetValueOperation * scaleFactorOperation = new SetValueOperation();
scaleFactorOperation->setValue(context->getScene()->r.size/100.0f);
ScaleOperation * operation = new ScaleOperation();
- inputSocket->relinkConnections(operation->getInputSocket(0), true, 0, graph);
+ inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
addLink(graph, scaleFactorOperation->getOutputSocket(), operation->getInputSocket(1));
addLink(graph, scaleFactorOperation->getOutputSocket(), operation->getInputSocket(2));
outputSocket->relinkConnections(operation->getOutputSocket(0));
@@ -67,7 +67,7 @@ void ScaleNode::convertToOperations(ExecutionSystem *graph, CompositorContext *
ScaleFixedSizeOperation * operation = new ScaleFixedSizeOperation();
operation->setNewWidth(data->xsch*data->size/100.0f);
operation->setNewHeight(data->ysch*data->size/100.0f);
- inputSocket->relinkConnections(operation->getInputSocket(0), true, 0, graph);
+ inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
outputSocket->relinkConnections(operation->getOutputSocket(0));
operation->getInputSocket(0)->getConnection()->setIgnoreResizeCheck(true);
graph->addOperation(operation);
@@ -77,9 +77,9 @@ void ScaleNode::convertToOperations(ExecutionSystem *graph, CompositorContext *
case CMP_SCALE_ABSOLUTE: {
ScaleAbsoluteOperation *operation = new ScaleAbsoluteOperation(); // TODO: what is the use of this one.... perhaps some issues when the ui was updated....
- inputSocket->relinkConnections(operation->getInputSocket(0), true, 0, graph);
- inputXSocket->relinkConnections(operation->getInputSocket(1), true, 1, graph);
- inputYSocket->relinkConnections(operation->getInputSocket(2), true, 2, graph);
+ inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
+ inputXSocket->relinkConnections(operation->getInputSocket(1), 1, graph);
+ inputYSocket->relinkConnections(operation->getInputSocket(2), 2, graph);
outputSocket->relinkConnections(operation->getOutputSocket(0));
graph->addOperation(operation);
}