[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46274] branches/tile/source/blender/ compositor/nodes/COM_DilateErodeNode.cpp: TileBranch
Jeroen Bakker
j.bakker at atmind.nl
Fri May 4 15:07:11 CEST 2012
Revision: 46274
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46274
Author: jbakker
Date: 2012-05-04 13:07:11 +0000 (Fri, 04 May 2012)
Log Message:
-----------
TileBranch
* added anti alias to Dilate/erode
- At Mind -
Modified Paths:
--------------
branches/tile/source/blender/compositor/nodes/COM_DilateErodeNode.cpp
Modified: branches/tile/source/blender/compositor/nodes/COM_DilateErodeNode.cpp
===================================================================
--- branches/tile/source/blender/compositor/nodes/COM_DilateErodeNode.cpp 2012-05-04 12:46:51 UTC (rev 46273)
+++ branches/tile/source/blender/compositor/nodes/COM_DilateErodeNode.cpp 2012-05-04 13:07:11 UTC (rev 46274)
@@ -24,6 +24,7 @@
#include "DNA_scene_types.h"
#include "COM_ExecutionSystem.h"
#include "COM_DilateErodeOperation.h"
+#include "COM_AntiAliasOperation.h"
DilateErodeNode::DilateErodeNode(bNode *editorNode): Node(editorNode) {
}
@@ -32,9 +33,13 @@
bNode* editorNode = this->getbNode();
DilateErodeOperation *operation = new DilateErodeOperation();
operation->setDistance(editorNode->custom2);
+ operation->setInset(0.0f);
this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0));
- this->getOutputSocket(0)->relinkConnections(operation->getOutputSocket(0));
+ AntiAliasOperation * antiAlias = new AntiAliasOperation();
+ addLink(graph, operation->getOutputSocket(), antiAlias->getInputSocket(0));
+ this->getOutputSocket(0)->relinkConnections(antiAlias->getOutputSocket(0));
graph->addOperation(operation);
+ graph->addOperation(antiAlias);
}
More information about the Bf-blender-cvs
mailing list