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