fix for using uninitialized blur falloff for dilate/erode node.

This commit is contained in:
Campbell Barton
2012-09-30 12:24:29 +00:00
parent 029c2156e9
commit 4b6be3c19b

View File

@@ -95,6 +95,7 @@ void DilateErodeNode::convertToOperations(ExecutionSystem *graph, CompositorCont
operationx->setbNode(editorNode);
operationx->setData(data);
operationx->setQuality(quality);
operationx->setFalloff(PROP_SMOOTH);
this->getInputSocket(0)->relinkConnections(operationx->getInputSocket(0), 0, graph);
// this->getInputSocket(1)->relinkConnections(operationx->getInputSocket(1), 1, graph); // no size input yet
graph->addOperation(operationx);
@@ -102,6 +103,7 @@ void DilateErodeNode::convertToOperations(ExecutionSystem *graph, CompositorCont
operationy->setbNode(editorNode);
operationy->setData(data);
operationy->setQuality(quality);
operationy->setFalloff(PROP_SMOOTH);
this->getOutputSocket(0)->relinkConnections(operationy->getOutputSocket());
graph->addOperation(operationy);
addLink(graph, operationx->getOutputSocket(), operationy->getInputSocket(0));