diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2017-09-03 17:47:39 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-09-04 16:45:27 +0300 |
commit | 9b7d506779578ad48bdeb3d78b9b56dca994eacf (patch) | |
tree | 7be45a3a5b600c3e51df89e66da1431bb3e08f3a | |
parent | 2deeec9e28bdd4d95f4160e641b16d7a5680a8e7 (diff) |
T52534: Compositor artifacts when scaling
Increased the maxx and maxy area of interest when scaling in this case.
-rw-r--r-- | source/blender/compositor/operations/COM_ScaleOperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.cpp b/source/blender/compositor/operations/COM_ScaleOperation.cpp index 117ae743ee7..46e155e43b5 100644 --- a/source/blender/compositor/operations/COM_ScaleOperation.cpp +++ b/source/blender/compositor/operations/COM_ScaleOperation.cpp @@ -271,9 +271,9 @@ bool ScaleFixedSizeOperation::determineDependingAreaOfInterest(rcti *input, Read { rcti newInput; - newInput.xmax = (input->xmax - m_offsetX) * this->m_relX; + newInput.xmax = (input->xmax - m_offsetX) * this->m_relX + 1; newInput.xmin = (input->xmin - m_offsetX) * this->m_relX; - newInput.ymax = (input->ymax - m_offsetY) * this->m_relY; + newInput.ymax = (input->ymax - m_offsetY) * this->m_relY + 1; newInput.ymin = (input->ymin - m_offsetY) * this->m_relY; return BaseScaleOperation::determineDependingAreaOfInterest(&newInput, readOperation, output); |