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:
authorManuel Castilla <manzanillawork@gmail.com>2021-10-08 02:09:26 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-10-08 02:29:02 +0300
commit4a22faf15a0cd027f724d515d06b24ba47cac03c (patch)
tree2f5fe18a57b9523eb1339284a05dab2d199d5db4 /source/blender/compositor/nodes/COM_GlareNode.cc
parent12a5a605572d742335a4978966444d393792cd28 (diff)
Cleanup: Convert camelCase naming to snake_case in Compositortemp-compositor-cleanups
To follow the style guide.
Diffstat (limited to 'source/blender/compositor/nodes/COM_GlareNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_GlareNode.cc39
1 files changed, 20 insertions, 19 deletions
diff --git a/source/blender/compositor/nodes/COM_GlareNode.cc b/source/blender/compositor/nodes/COM_GlareNode.cc
index bbbbb7fa7ee..77b1162f7cc 100644
--- a/source/blender/compositor/nodes/COM_GlareNode.cc
+++ b/source/blender/compositor/nodes/COM_GlareNode.cc
@@ -27,15 +27,15 @@
namespace blender::compositor {
-GlareNode::GlareNode(bNode *editorNode) : Node(editorNode)
+GlareNode::GlareNode(bNode *editor_node) : Node(editor_node)
{
/* pass */
}
-void GlareNode::convertToOperations(NodeConverter &converter,
- const CompositorContext & /*context*/) const
+void GlareNode::convert_to_operations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- bNode *node = this->getbNode();
+ bNode *node = this->get_bnode();
NodeGlare *glare = (NodeGlare *)node->storage;
GlareBaseOperation *glareoperation = nullptr;
@@ -55,30 +55,31 @@ void GlareNode::convertToOperations(NodeConverter &converter,
break;
}
BLI_assert(glareoperation);
- glareoperation->setGlareSettings(glare);
+ glareoperation->set_glare_settings(glare);
- GlareThresholdOperation *thresholdOperation = new GlareThresholdOperation();
- thresholdOperation->setGlareSettings(glare);
+ GlareThresholdOperation *threshold_operation = new GlareThresholdOperation();
+ threshold_operation->set_glare_settings(glare);
SetValueOperation *mixvalueoperation = new SetValueOperation();
- mixvalueoperation->setValue(glare->mix);
+ mixvalueoperation->set_value(glare->mix);
MixGlareOperation *mixoperation = new MixGlareOperation();
mixoperation->set_canvas_input_index(1);
- mixoperation->getInputSocket(2)->setResizeMode(ResizeMode::FitAny);
+ mixoperation->get_input_socket(2)->set_resize_mode(ResizeMode::FitAny);
- converter.addOperation(glareoperation);
- converter.addOperation(thresholdOperation);
- converter.addOperation(mixvalueoperation);
- converter.addOperation(mixoperation);
+ converter.add_operation(glareoperation);
+ converter.add_operation(threshold_operation);
+ converter.add_operation(mixvalueoperation);
+ converter.add_operation(mixoperation);
- converter.mapInputSocket(getInputSocket(0), thresholdOperation->getInputSocket(0));
- converter.addLink(thresholdOperation->getOutputSocket(), glareoperation->getInputSocket(0));
+ converter.map_input_socket(get_input_socket(0), threshold_operation->get_input_socket(0));
+ converter.add_link(threshold_operation->get_output_socket(),
+ glareoperation->get_input_socket(0));
- converter.addLink(mixvalueoperation->getOutputSocket(), mixoperation->getInputSocket(0));
- converter.mapInputSocket(getInputSocket(0), mixoperation->getInputSocket(1));
- converter.addLink(glareoperation->getOutputSocket(), mixoperation->getInputSocket(2));
- converter.mapOutputSocket(getOutputSocket(), mixoperation->getOutputSocket());
+ converter.add_link(mixvalueoperation->get_output_socket(), mixoperation->get_input_socket(0));
+ converter.map_input_socket(get_input_socket(0), mixoperation->get_input_socket(1));
+ converter.add_link(glareoperation->get_output_socket(), mixoperation->get_input_socket(2));
+ converter.map_output_socket(get_output_socket(), mixoperation->get_output_socket());
}
} // namespace blender::compositor