style cleanup: more nodes

This commit is contained in:
2012-06-15 17:57:39 +00:00
parent 687b6e5447
commit cde4d72848
110 changed files with 593 additions and 474 deletions

View File

@@ -26,10 +26,11 @@
#include "COM_ExecutionSystem.h"
#include "COM_AntiAliasOperation.h"
IDMaskNode::IDMaskNode(bNode *editorNode): Node(editorNode)
IDMaskNode::IDMaskNode(bNode *editorNode) : Node(editorNode)
{
/* pass */
}
void IDMaskNode::convertToOperations(ExecutionSystem *graph, CompositorContext * context)
void IDMaskNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context)
{
bNode *bnode = this->getbNode();
IDMaskOperation *operation;
@@ -37,11 +38,11 @@ void IDMaskNode::convertToOperations(ExecutionSystem *graph, CompositorContext *
operation->setObjectIndex(bnode->custom1);
this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), 0, graph);
if (bnode->custom2==0 || context->getScene()->r.scemode & R_FULL_SAMPLE) {
if (bnode->custom2 == 0 || context->getScene()->r.scemode & R_FULL_SAMPLE) {
this->getOutputSocket(0)->relinkConnections(operation->getOutputSocket(0));
}
else {
AntiAliasOperation * antiAliasOperation = new AntiAliasOperation();
AntiAliasOperation *antiAliasOperation = new AntiAliasOperation();
addLink(graph, operation->getOutputSocket(), antiAliasOperation->getInputSocket(0));
this->getOutputSocket(0)->relinkConnections(antiAliasOperation->getOutputSocket(0));
graph->addOperation(antiAliasOperation);