style cleanup: more nodes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user