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_SocketProxyNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_SocketProxyNode.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/source/blender/compositor/nodes/COM_SocketProxyNode.cpp b/source/blender/compositor/nodes/COM_SocketProxyNode.cpp
index d924d2ce9f8..5476a21d2a5 100644
--- a/source/blender/compositor/nodes/COM_SocketProxyNode.cpp
+++ b/source/blender/compositor/nodes/COM_SocketProxyNode.cpp
@@ -34,17 +34,21 @@ SocketProxyNode::SocketProxyNode(bNode *editorNode,
DataType dt;
dt = COM_DT_VALUE;
- if (editorInput->type == SOCK_RGBA)
+ if (editorInput->type == SOCK_RGBA) {
dt = COM_DT_COLOR;
- if (editorInput->type == SOCK_VECTOR)
+ }
+ if (editorInput->type == SOCK_VECTOR) {
dt = COM_DT_VECTOR;
+ }
this->addInputSocket(dt, editorInput);
dt = COM_DT_VALUE;
- if (editorOutput->type == SOCK_RGBA)
+ if (editorOutput->type == SOCK_RGBA) {
dt = COM_DT_COLOR;
- if (editorOutput->type == SOCK_VECTOR)
+ }
+ if (editorOutput->type == SOCK_VECTOR) {
dt = COM_DT_VECTOR;
+ }
this->addOutputSocket(dt, editorOutput);
}
@@ -63,17 +67,21 @@ SocketBufferNode::SocketBufferNode(bNode *editorNode,
DataType dt;
dt = COM_DT_VALUE;
- if (editorInput->type == SOCK_RGBA)
+ if (editorInput->type == SOCK_RGBA) {
dt = COM_DT_COLOR;
- if (editorInput->type == SOCK_VECTOR)
+ }
+ if (editorInput->type == SOCK_VECTOR) {
dt = COM_DT_VECTOR;
+ }
this->addInputSocket(dt, editorInput);
dt = COM_DT_VALUE;
- if (editorOutput->type == SOCK_RGBA)
+ if (editorOutput->type == SOCK_RGBA) {
dt = COM_DT_COLOR;
- if (editorOutput->type == SOCK_VECTOR)
+ }
+ if (editorOutput->type == SOCK_VECTOR) {
dt = COM_DT_VECTOR;
+ }
this->addOutputSocket(dt, editorOutput);
}