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_ValueNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_ValueNode.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/source/blender/compositor/nodes/COM_ValueNode.cc b/source/blender/compositor/nodes/COM_ValueNode.cc
index 6b640fa2a3a..892a68dabcc 100644
--- a/source/blender/compositor/nodes/COM_ValueNode.cc
+++ b/source/blender/compositor/nodes/COM_ValueNode.cc
@@ -17,25 +17,24 @@
*/
#include "COM_ValueNode.h"
-#include "COM_ExecutionSystem.h"
#include "COM_SetValueOperation.h"
namespace blender::compositor {
-ValueNode::ValueNode(bNode *editorNode) : Node(editorNode)
+ValueNode::ValueNode(bNode *editor_node) : Node(editor_node)
{
/* pass */
}
-void ValueNode::convertToOperations(NodeConverter &converter,
- const CompositorContext & /*context*/) const
+void ValueNode::convert_to_operations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
SetValueOperation *operation = new SetValueOperation();
- NodeOutput *output = this->getOutputSocket(0);
- operation->setValue(output->getEditorValueFloat());
- converter.addOperation(operation);
+ NodeOutput *output = this->get_output_socket(0);
+ operation->set_value(output->get_editor_value_float());
+ converter.add_operation(operation);
- converter.mapOutputSocket(output, operation->getOutputSocket());
+ converter.map_output_socket(output, operation->get_output_socket());
}
} // namespace blender::compositor