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_TextureNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_TextureNode.cc54
1 files changed, 27 insertions, 27 deletions
diff --git a/source/blender/compositor/nodes/COM_TextureNode.cc b/source/blender/compositor/nodes/COM_TextureNode.cc
index 4063e4b4bce..ca57680781f 100644
--- a/source/blender/compositor/nodes/COM_TextureNode.cc
+++ b/source/blender/compositor/nodes/COM_TextureNode.cc
@@ -21,39 +21,39 @@
namespace blender::compositor {
-TextureNode::TextureNode(bNode *editorNode) : Node(editorNode)
+TextureNode::TextureNode(bNode *editor_node) : Node(editor_node)
{
/* pass */
}
-void TextureNode::convertToOperations(NodeConverter &converter,
- const CompositorContext &context) const
+void TextureNode::convert_to_operations(NodeConverter &converter,
+ const CompositorContext &context) const
{
- bNode *editorNode = this->getbNode();
- Tex *texture = (Tex *)editorNode->id;
+ bNode *editor_node = this->get_bnode();
+ Tex *texture = (Tex *)editor_node->id;
TextureOperation *operation = new TextureOperation();
- const ColorManagedDisplaySettings *displaySettings = context.getDisplaySettings();
- bool sceneColorManage = !STREQ(displaySettings->display_device, "None");
- operation->setTexture(texture);
- operation->setRenderData(context.getRenderData());
- operation->setSceneColorManage(sceneColorManage);
- converter.addOperation(operation);
-
- converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0));
- converter.mapInputSocket(getInputSocket(1), operation->getInputSocket(1));
- converter.mapOutputSocket(getOutputSocket(1), operation->getOutputSocket());
-
- converter.addPreview(operation->getOutputSocket());
-
- TextureAlphaOperation *alphaOperation = new TextureAlphaOperation();
- alphaOperation->setTexture(texture);
- alphaOperation->setRenderData(context.getRenderData());
- alphaOperation->setSceneColorManage(sceneColorManage);
- converter.addOperation(alphaOperation);
-
- converter.mapInputSocket(getInputSocket(0), alphaOperation->getInputSocket(0));
- converter.mapInputSocket(getInputSocket(1), alphaOperation->getInputSocket(1));
- converter.mapOutputSocket(getOutputSocket(0), alphaOperation->getOutputSocket());
+ const ColorManagedDisplaySettings *display_settings = context.get_display_settings();
+ bool scene_color_manage = !STREQ(display_settings->display_device, "None");
+ operation->set_texture(texture);
+ operation->set_render_data(context.get_render_data());
+ operation->set_scene_color_manage(scene_color_manage);
+ converter.add_operation(operation);
+
+ converter.map_input_socket(get_input_socket(0), operation->get_input_socket(0));
+ converter.map_input_socket(get_input_socket(1), operation->get_input_socket(1));
+ converter.map_output_socket(get_output_socket(1), operation->get_output_socket());
+
+ converter.add_preview(operation->get_output_socket());
+
+ TextureAlphaOperation *alpha_operation = new TextureAlphaOperation();
+ alpha_operation->set_texture(texture);
+ alpha_operation->set_render_data(context.get_render_data());
+ alpha_operation->set_scene_color_manage(scene_color_manage);
+ converter.add_operation(alpha_operation);
+
+ converter.map_input_socket(get_input_socket(0), alpha_operation->get_input_socket(0));
+ converter.map_input_socket(get_input_socket(1), alpha_operation->get_input_socket(1));
+ converter.map_output_socket(get_output_socket(0), alpha_operation->get_output_socket());
}
} // namespace blender::compositor