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:
Diffstat (limited to 'source/blender/compositor/nodes/COM_IDMaskNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_IDMaskNode.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/source/blender/compositor/nodes/COM_IDMaskNode.cc b/source/blender/compositor/nodes/COM_IDMaskNode.cc
index 0a7ed521afb..4d761f25fd3 100644
--- a/source/blender/compositor/nodes/COM_IDMaskNode.cc
+++ b/source/blender/compositor/nodes/COM_IDMaskNode.cc
@@ -22,46 +22,46 @@
namespace blender::compositor {
-IDMaskNode::IDMaskNode(bNode *editorNode) : Node(editorNode)
+IDMaskNode::IDMaskNode(bNode *editor_node) : Node(editor_node)
{
/* pass */
}
-void IDMaskNode::convertToOperations(NodeConverter &converter,
- const CompositorContext & /*context*/) const
+void IDMaskNode::convert_to_operations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- bNode *bnode = this->getbNode();
+ bNode *bnode = this->get_bnode();
IDMaskOperation *operation;
operation = new IDMaskOperation();
- operation->setObjectIndex(bnode->custom1);
- converter.addOperation(operation);
+ operation->set_object_index(bnode->custom1);
+ converter.add_operation(operation);
- converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0));
+ converter.map_input_socket(get_input_socket(0), operation->get_input_socket(0));
if (bnode->custom2 == 0) {
- converter.mapOutputSocket(getOutputSocket(0), operation->getOutputSocket(0));
+ converter.map_output_socket(get_output_socket(0), operation->get_output_socket(0));
}
else {
SMAAEdgeDetectionOperation *operation1 = nullptr;
operation1 = new SMAAEdgeDetectionOperation();
- converter.addOperation(operation1);
+ converter.add_operation(operation1);
- converter.addLink(operation->getOutputSocket(0), operation1->getInputSocket(0));
+ converter.add_link(operation->get_output_socket(0), operation1->get_input_socket(0));
/* Blending Weight Calculation Pixel Shader (Second Pass). */
SMAABlendingWeightCalculationOperation *operation2 =
new SMAABlendingWeightCalculationOperation();
- converter.addOperation(operation2);
+ converter.add_operation(operation2);
- converter.addLink(operation1->getOutputSocket(), operation2->getInputSocket(0));
+ converter.add_link(operation1->get_output_socket(), operation2->get_input_socket(0));
/* Neighborhood Blending Pixel Shader (Third Pass). */
SMAANeighborhoodBlendingOperation *operation3 = new SMAANeighborhoodBlendingOperation();
- converter.addOperation(operation3);
+ converter.add_operation(operation3);
- converter.addLink(operation->getOutputSocket(0), operation3->getInputSocket(0));
- converter.addLink(operation2->getOutputSocket(), operation3->getInputSocket(1));
- converter.mapOutputSocket(getOutputSocket(0), operation3->getOutputSocket());
+ converter.add_link(operation->get_output_socket(0), operation3->get_input_socket(0));
+ converter.add_link(operation2->get_output_socket(), operation3->get_input_socket(1));
+ converter.map_output_socket(get_output_socket(0), operation3->get_output_socket());
}
}