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_ColorRampNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_ColorRampNode.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/compositor/nodes/COM_ColorRampNode.cpp b/source/blender/compositor/nodes/COM_ColorRampNode.cpp
index bd1b3b5a35e..1873cad5d57 100644
--- a/source/blender/compositor/nodes/COM_ColorRampNode.cpp
+++ b/source/blender/compositor/nodes/COM_ColorRampNode.cpp
@@ -27,16 +27,17 @@
#include "COM_SeparateChannelOperation.h"
#include "DNA_texture_types.h"
-ColorRampNode::ColorRampNode(bNode* editorNode): Node(editorNode)
+ColorRampNode::ColorRampNode(bNode *editorNode): Node(editorNode)
{}
-void ColorRampNode::convertToOperations(ExecutionSystem *graph, CompositorContext * context) {
+void ColorRampNode::convertToOperations(ExecutionSystem *graph, CompositorContext * context)
+{
InputSocket *inputSocket = this->getInputSocket(0);
OutputSocket *outputSocket = this->getOutputSocket(0);
OutputSocket *outputSocketAlpha = this->getOutputSocket(1);
- bNode* editorNode = this->getbNode();
+ bNode *editorNode = this->getbNode();
- ColorRampOperation * operation = new ColorRampOperation();
+ ColorRampOperation *operation = new ColorRampOperation();
outputSocket->relinkConnections(operation->getOutputSocket(0));
if (outputSocketAlpha->isConnected()) {
SeparateChannelOperation *operation2 = new SeparateChannelOperation();