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_SetVectorOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_SetVectorOperation.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_SetVectorOperation.cpp b/source/blender/compositor/operations/COM_SetVectorOperation.cpp
index 3e9b68ac971..70477de0514 100644
--- a/source/blender/compositor/operations/COM_SetVectorOperation.cpp
+++ b/source/blender/compositor/operations/COM_SetVectorOperation.cpp
@@ -23,18 +23,21 @@
#include "COM_SetVectorOperation.h"
#include "COM_defines.h"
-SetVectorOperation::SetVectorOperation(): NodeOperation() {
+SetVectorOperation::SetVectorOperation(): NodeOperation()
+{
this->addOutputSocket(COM_DT_VECTOR);
}
-void SetVectorOperation::executePixel(float* outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) {
+void SetVectorOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
+{
outputValue[0] = this->x;
outputValue[1] = this->y;
outputValue[2] = this->z;
outputValue[3] = this->w;
}
-void SetVectorOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) {
+void SetVectorOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[])
+{
if (preferredResolution[0] == 0 ||preferredResolution[1]==0) {
resolution[0] = COM_DEFAULT_RESOLUTION_WIDTH;
resolution[1] = COM_DEFAULT_RESOLUTION_HEIGHT;