[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46208] branches/tile/source/blender/ compositor/nodes/COM_BlurNode.cpp: TileBranch
Jeroen Bakker
j.bakker at atmind.nl
Wed May 2 20:39:59 CEST 2012
Revision: 46208
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46208
Author: jbakker
Date: 2012-05-02 18:39:59 +0000 (Wed, 02 May 2012)
Log Message:
-----------
TileBranch
* Fix for [#31225] Blur Node - mitchell filter
- Also implemented for the catrom filter
These filters don't look good on medium/low quality setting. so these will only be calculated on highest quality.
Jeroen & Monique
- At Mind -
Modified Paths:
--------------
branches/tile/source/blender/compositor/nodes/COM_BlurNode.cpp
Modified: branches/tile/source/blender/compositor/nodes/COM_BlurNode.cpp
===================================================================
--- branches/tile/source/blender/compositor/nodes/COM_BlurNode.cpp 2012-05-02 18:30:47 UTC (rev 46207)
+++ branches/tile/source/blender/compositor/nodes/COM_BlurNode.cpp 2012-05-02 18:39:59 UTC (rev 46208)
@@ -36,16 +36,22 @@
NodeBlurData * data = (NodeBlurData*)editorNode->storage;
const bNodeSocket *sock = this->getInputSocket(1)->getbNodeSocket();
const float size = ((const bNodeSocketValueFloat*)sock->default_value)->value;
+ CompositorQuality quality = context->getQuality();
+
+ if (data->filtertype == R_FILTER_MITCH || data->filtertype == R_FILTER_CATROM) {
+ quality = COM_QUALITY_HIGH;
+ }
+
if (!data->bokeh) {
GaussianXBlurOperation *operationx = new GaussianXBlurOperation();
operationx->setData(data);
- operationx->setQuality(context->getQuality());
+ operationx->setQuality(quality);
this->getInputSocket(0)->relinkConnections(operationx->getInputSocket(0), true, 0, graph);
operationx->setSize(size);
graph->addOperation(operationx);
GaussianYBlurOperation *operationy = new GaussianYBlurOperation();
operationy->setData(data);
- operationy->setQuality(context->getQuality());
+ operationy->setQuality(quality);
this->getOutputSocket(0)->relinkConnections(operationy->getOutputSocket());
operationy->setSize(size);
graph->addOperation(operationy);
@@ -56,7 +62,7 @@
operation->setData(data);
this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), true, 0, graph);
operation->setSize(size);
- operation->setQuality(context->getQuality());
+ operation->setQuality(quality);
graph->addOperation(operation);
this->getOutputSocket(0)->relinkConnections(operation->getOutputSocket());
addPreviewOperation(graph, operation->getOutputSocket(), 5);
More information about the Bf-blender-cvs
mailing list