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_SetValueOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_SetValueOperation.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_SetValueOperation.cpp b/source/blender/compositor/operations/COM_SetValueOperation.cpp
index a8a681a6659..abd4acafea6 100644
--- a/source/blender/compositor/operations/COM_SetValueOperation.cpp
+++ b/source/blender/compositor/operations/COM_SetValueOperation.cpp
@@ -22,15 +22,18 @@
#include "COM_SetValueOperation.h"
-SetValueOperation::SetValueOperation(): NodeOperation() {
+SetValueOperation::SetValueOperation(): NodeOperation()
+{
this->addOutputSocket(COM_DT_VALUE);
}
-void SetValueOperation::executePixel(float* outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) {
+void SetValueOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
+{
outputValue[0] = this->value;
}
-void SetValueOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) {
+void SetValueOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[])
+{
resolution[0] = preferredResolution[0];
resolution[1] = preferredResolution[1];
}