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:
authorMonique Dewanchand <m.dewanchand@atmind.nl>2013-06-08 23:56:11 +0400
committerMonique Dewanchand <m.dewanchand@atmind.nl>2013-06-08 23:56:11 +0400
commit603289ffb228a9ed45a123cf6b7e752d1e184d01 (patch)
tree89d713d02f6df8c975650e2f1102f0ee3ac429ff /source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp
parent8421bc85733c3c4b5d9aa329bf54dc3e979f0607 (diff)
Fix for bug [#35400] Dilate Erode Feather Bug - feathering wraps around image
Diffstat (limited to 'source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp b/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp
index af15f719cbc..2fdfd392d5d 100644
--- a/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp
+++ b/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp
@@ -99,13 +99,12 @@ void GaussianAlphaXBlurOperation::executePixel(float output[4], int x, int y, vo
int bufferstarty = inputBuffer->getRect()->ymin;
int miny = y;
- // int maxy = y; // UNUSED
int minx = x - this->m_rad;
int maxx = x + this->m_rad; // UNUSED
miny = max(miny, inputBuffer->getRect()->ymin);
minx = max(minx, inputBuffer->getRect()->xmin);
- // maxy = min(maxy, inputBuffer->getRect()->ymax);
- maxx = min(maxx, inputBuffer->getRect()->xmax);
+ maxx = min(maxx, inputBuffer->getRect()->xmax -1);
+
/* *** this is the main part which is different to 'GaussianXBlurOperation' *** */
int step = getStep();