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/operations/COM_SocketProxyOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_SocketProxyOperation.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_SocketProxyOperation.cpp b/source/blender/compositor/operations/COM_SocketProxyOperation.cpp
index 161bdb3e295..6ed877523d1 100644
--- a/source/blender/compositor/operations/COM_SocketProxyOperation.cpp
+++ b/source/blender/compositor/operations/COM_SocketProxyOperation.cpp
@@ -22,20 +22,24 @@
#include "COM_SocketProxyOperation.h"
-SocketProxyOperation::SocketProxyOperation() : NodeOperation() {
+SocketProxyOperation::SocketProxyOperation() : NodeOperation()
+{
this->addInputSocket(COM_DT_COLOR/*|COM_DT_VECTOR|COM_DT_VALUE*/);
this->addOutputSocket(COM_DT_COLOR);
this->inputOperation = NULL;
}
-void SocketProxyOperation::initExecution() {
+void SocketProxyOperation::initExecution()
+{
this->inputOperation = this->getInputSocketReader(0);
}
-void SocketProxyOperation::deinitExecution() {
+void SocketProxyOperation::deinitExecution()
+{
this->inputOperation = NULL;
}
-void SocketProxyOperation::executePixel(float *color,float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) {
+void SocketProxyOperation::executePixel(float *color,float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
+{
this->inputOperation->read(color, x, y, sampler, inputBuffers);
}