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-06-19 17:52:41 +0400
committerJeroen Bakker <j.bakker@atmind.nl>2012-06-19 17:52:41 +0400
commit7f2d1c01cdbcf1e0934c2f1664eb76986c7bc369 (patch)
tree405ddc67c9eeda5113a30176644f557efb983ab5 /source/blender/compositor/nodes/COM_DefocusNode.cpp
parentcf2ae76347d48f37ffb69c4e1f946aded5f1099a (diff)
Implemented Preview of defocus to set the quality of the node to Low
increased the inner loop of opencl
Diffstat (limited to 'source/blender/compositor/nodes/COM_DefocusNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_DefocusNode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/compositor/nodes/COM_DefocusNode.cpp b/source/blender/compositor/nodes/COM_DefocusNode.cpp
index 62a9693889a..461505871c6 100644
--- a/source/blender/compositor/nodes/COM_DefocusNode.cpp
+++ b/source/blender/compositor/nodes/COM_DefocusNode.cpp
@@ -91,7 +91,11 @@ void DefocusNode::convertToOperations(ExecutionSystem *graph, CompositorContext
graph->addOperation(bokeh);
VariableSizeBokehBlurOperation *operation = new VariableSizeBokehBlurOperation();
- operation->setQuality(context->getQuality());
+ if (data->preview) {
+ operation->setQuality(COM_QUALITY_LOW);
+ } else {
+ operation->setQuality(context->getQuality());
+ }
operation->setMaxBlur(data->maxblur);
operation->setThreshold(data->bthresh);
addLink(graph, bokeh->getOutputSocket(), operation->getInputSocket(1));