diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2012-06-19 13:52:52 +0400 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2012-06-19 13:52:52 +0400 |
commit | bb7b8bed8af9f15472c1aeb0d2e338c9588ac59c (patch) | |
tree | d2cfcb0ea69805ef94067ba76c6ad455a0f46b97 /source/blender/compositor/nodes/COM_BokehBlurNode.cpp | |
parent | 340489d29fc241ace0d10ccd3a00acd3ce916e13 (diff) |
* fixed defocus background blurin...
Diffstat (limited to 'source/blender/compositor/nodes/COM_BokehBlurNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_BokehBlurNode.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/source/blender/compositor/nodes/COM_BokehBlurNode.cpp b/source/blender/compositor/nodes/COM_BokehBlurNode.cpp index 296056b6c48..59ec9525fa6 100644 --- a/source/blender/compositor/nodes/COM_BokehBlurNode.cpp +++ b/source/blender/compositor/nodes/COM_BokehBlurNode.cpp @@ -37,24 +37,24 @@ BokehBlurNode::BokehBlurNode(bNode *editorNode) : Node(editorNode) void BokehBlurNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context) { - Object *camob = context->getScene()->camera; +// Object *camob = context->getScene()->camera; - if (this->getInputSocket(2)->isConnected()) { - VariableSizeBokehBlurOperation *operation = new VariableSizeBokehBlurOperation(); - ConvertDepthToRadiusOperation *converter = new ConvertDepthToRadiusOperation(); - converter->setfStop(this->getbNode()->custom3); - converter->setCameraObject(camob); - operation->setMaxBlur((int)this->getbNode()->custom4); - operation->setQuality(context->getQuality()); - this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), 0, graph); - this->getInputSocket(1)->relinkConnections(operation->getInputSocket(1), 1, graph); - this->getInputSocket(2)->relinkConnections(converter->getInputSocket(0), 2, graph); - addLink(graph, converter->getOutputSocket(), operation->getInputSocket(2)); - graph->addOperation(operation); - graph->addOperation(converter); - this->getOutputSocket(0)->relinkConnections(operation->getOutputSocket()); - } - else { +// if (this->getInputSocket(2)->isConnected()) { +// VariableSizeBokehBlurOperation *operation = new VariableSizeBokehBlurOperation(); +// ConvertDepthToRadiusOperation *converter = new ConvertDepthToRadiusOperation(); +// converter->setfStop(this->getbNode()->custom3); +// converter->setCameraObject(camob); +// operation->setMaxBlur((int)this->getbNode()->custom4); +// operation->setQuality(context->getQuality()); +// this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), 0, graph); +// this->getInputSocket(1)->relinkConnections(operation->getInputSocket(1), 1, graph); +// this->getInputSocket(2)->relinkConnections(converter->getInputSocket(0), 2, graph); +// addLink(graph, converter->getOutputSocket(), operation->getInputSocket(2)); +// graph->addOperation(operation); +// graph->addOperation(converter); +// this->getOutputSocket(0)->relinkConnections(operation->getOutputSocket()); +// } +// else { BokehBlurOperation *operation = new BokehBlurOperation(); this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), 0, graph); this->getInputSocket(1)->relinkConnections(operation->getInputSocket(1), 1, graph); @@ -63,5 +63,5 @@ void BokehBlurNode::convertToOperations(ExecutionSystem *graph, CompositorContex operation->setQuality(context->getQuality()); graph->addOperation(operation); this->getOutputSocket(0)->relinkConnections(operation->getOutputSocket()); - } +// } } |