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_AntiAliasOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_AntiAliasOperation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_AntiAliasOperation.cpp b/source/blender/compositor/operations/COM_AntiAliasOperation.cpp
index 729d04c182e..3d8cd13229f 100644
--- a/source/blender/compositor/operations/COM_AntiAliasOperation.cpp
+++ b/source/blender/compositor/operations/COM_AntiAliasOperation.cpp
@@ -43,7 +43,8 @@ void AntiAliasOperation::initExecution() {
void AntiAliasOperation::executePixel(float* color, int x, int y, MemoryBuffer *inputBuffers[], void * data) {
if (y < 0 || y >= this->height || x < 0 || x >= this->width) {
color[0] = 0.0f;
- } else {
+ }
+ else {
int offset = y*this->width + x;
color[0] = buffer[offset]/255.0f;
}
@@ -62,7 +63,8 @@ bool AntiAliasOperation::determineDependingAreaOfInterest(rcti *input, ReadBuffe
rcti imageInput;
if (this->buffer) {
return false;
- } else {
+ }
+ else {
NodeOperation* operation = getInputOperation(0);
imageInput.xmax = operation->getWidth();
imageInput.xmin = 0;