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/intern/COM_NodeConverter.cpp')
-rw-r--r--source/blender/compositor/intern/COM_NodeConverter.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/blender/compositor/intern/COM_NodeConverter.cpp b/source/blender/compositor/intern/COM_NodeConverter.cpp
index df8a7e6353c..1b62466f81f 100644
--- a/source/blender/compositor/intern/COM_NodeConverter.cpp
+++ b/source/blender/compositor/intern/COM_NodeConverter.cpp
@@ -73,13 +73,13 @@ NodeOperation *NodeConverter::setInvalidOutput(NodeOutput *output)
{
/* this is a really bad situation - bring on the pink! - so artists know this is bad */
const float warning_color[4] = {1.0f, 0.0f, 1.0f, 1.0f};
-
+
SetColorOperation *operation = new SetColorOperation();
operation->setChannels(warning_color);
-
+
m_builder->addOperation(operation);
m_builder->mapOutputSocket(output, operation->getOutputSocket());
-
+
return operation;
}
@@ -87,9 +87,9 @@ NodeOperationOutput *NodeConverter::addInputProxy(NodeInput *input, bool use_con
{
SocketProxyOperation *proxy = new SocketProxyOperation(input->getDataType(), use_conversion);
m_builder->addOperation(proxy);
-
+
m_builder->mapInputSocket(input, proxy->getInputSocket(0));
-
+
return proxy->getOutputSocket();
}
@@ -97,9 +97,9 @@ NodeOperationInput *NodeConverter::addOutputProxy(NodeOutput *output, bool use_c
{
SocketProxyOperation *proxy = new SocketProxyOperation(output->getDataType(), use_conversion);
m_builder->addOperation(proxy);
-
+
m_builder->mapOutputSocket(output, proxy->getOutputSocket());
-
+
return proxy->getInputSocket(0);
}
@@ -107,7 +107,7 @@ void NodeConverter::addInputValue(NodeOperationInput *input, float value)
{
SetValueOperation *operation = new SetValueOperation();
operation->setValue(value);
-
+
m_builder->addOperation(operation);
m_builder->addLink(operation->getOutputSocket(), input);
}
@@ -116,7 +116,7 @@ void NodeConverter::addInputColor(NodeOperationInput *input, const float value[4
{
SetColorOperation *operation = new SetColorOperation();
operation->setChannels(value);
-
+
m_builder->addOperation(operation);
m_builder->addLink(operation->getOutputSocket(), input);
}
@@ -125,7 +125,7 @@ void NodeConverter::addInputVector(NodeOperationInput *input, const float value[
{
SetVectorOperation *operation = new SetVectorOperation();
operation->setVector(value);
-
+
m_builder->addOperation(operation);
m_builder->addLink(operation->getOutputSocket(), input);
}
@@ -134,7 +134,7 @@ void NodeConverter::addOutputValue(NodeOutput *output, float value)
{
SetValueOperation *operation = new SetValueOperation();
operation->setValue(value);
-
+
m_builder->addOperation(operation);
m_builder->mapOutputSocket(output, operation->getOutputSocket());
}
@@ -143,7 +143,7 @@ void NodeConverter::addOutputColor(NodeOutput *output, const float value[4])
{
SetColorOperation *operation = new SetColorOperation();
operation->setChannels(value);
-
+
m_builder->addOperation(operation);
m_builder->mapOutputSocket(output, operation->getOutputSocket());
}
@@ -152,7 +152,7 @@ void NodeConverter::addOutputVector(NodeOutput *output, const float value[3])
{
SetVectorOperation *operation = new SetVectorOperation();
operation->setVector(value);
-
+
m_builder->addOperation(operation);
m_builder->mapOutputSocket(output, operation->getOutputSocket());
}