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_ColorRampNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_ColorRampNode.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/compositor/nodes/COM_ColorRampNode.cc b/source/blender/compositor/nodes/COM_ColorRampNode.cc
index e4346459dd4..7ae83be65c2 100644
--- a/source/blender/compositor/nodes/COM_ColorRampNode.cc
+++ b/source/blender/compositor/nodes/COM_ColorRampNode.cc
@@ -22,32 +22,32 @@
namespace blender::compositor {
-ColorRampNode::ColorRampNode(bNode *editorNode) : Node(editorNode)
+ColorRampNode::ColorRampNode(bNode *editor_node) : Node(editor_node)
{
/* pass */
}
-void ColorRampNode::convertToOperations(NodeConverter &converter,
- const CompositorContext & /*context*/) const
+void ColorRampNode::convert_to_operations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- NodeInput *inputSocket = this->getInputSocket(0);
- NodeOutput *outputSocket = this->getOutputSocket(0);
- NodeOutput *outputSocketAlpha = this->getOutputSocket(1);
- bNode *editorNode = this->getbNode();
+ NodeInput *input_socket = this->get_input_socket(0);
+ NodeOutput *output_socket = this->get_output_socket(0);
+ NodeOutput *output_socket_alpha = this->get_output_socket(1);
+ bNode *editor_node = this->get_bnode();
ColorRampOperation *operation = new ColorRampOperation();
- operation->setColorBand((ColorBand *)editorNode->storage);
- converter.addOperation(operation);
+ operation->set_color_band((ColorBand *)editor_node->storage);
+ converter.add_operation(operation);
- converter.mapInputSocket(inputSocket, operation->getInputSocket(0));
- converter.mapOutputSocket(outputSocket, operation->getOutputSocket(0));
+ converter.map_input_socket(input_socket, operation->get_input_socket(0));
+ converter.map_output_socket(output_socket, operation->get_output_socket(0));
SeparateChannelOperation *operation2 = new SeparateChannelOperation();
- operation2->setChannel(3);
- converter.addOperation(operation2);
+ operation2->set_channel(3);
+ converter.add_operation(operation2);
- converter.addLink(operation->getOutputSocket(), operation2->getInputSocket(0));
- converter.mapOutputSocket(outputSocketAlpha, operation2->getOutputSocket());
+ converter.add_link(operation->get_output_socket(), operation2->get_input_socket(0));
+ converter.map_output_socket(output_socket_alpha, operation2->get_output_socket());
}
} // namespace blender::compositor