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.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_ValueNode.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/compositor/nodes/COM_ValueNode.cpp b/source/blender/compositor/nodes/COM_ValueNode.cpp
index 0b40872bed4..39245e75a2f 100644
--- a/source/blender/compositor/nodes/COM_ValueNode.cpp
+++ b/source/blender/compositor/nodes/COM_ValueNode.cpp
@@ -25,12 +25,14 @@
#include "COM_SetValueOperation.h"
#include "COM_ExecutionSystem.h"
-ValueNode::ValueNode(bNode *editorNode): Node(editorNode) {
+ValueNode::ValueNode(bNode *editorNode): Node(editorNode)
+{
}
-void ValueNode::convertToOperations(ExecutionSystem *graph, CompositorContext * context) {
+void ValueNode::convertToOperations(ExecutionSystem *graph, CompositorContext * context)
+{
SetValueOperation *operation = new SetValueOperation();
- bNodeSocket* socket = this->getEditorOutputSocket(0);
+ bNodeSocket *socket = this->getEditorOutputSocket(0);
bNodeSocketValueFloat *dval = (bNodeSocketValueFloat*)socket->default_value;
this->getOutputSocket(0)->relinkConnections(operation->getOutputSocket());
operation->setValue(dval->value);