diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-24 10:42:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-24 10:42:31 +0300 |
commit | 4c75f776690cfec51ad3ca686805be6edf21b514 (patch) | |
tree | 65af7f1d395e20a231f0ffa6571148cf4dd353fd /source/blender/compositor/operations/COM_CompositorOperation.cpp | |
parent | 1f527c6033352ddeab601786def579c0fe61808e (diff) |
Fix T43784: Compositing scale node border error
This was still the known issue with pixel center, original commit didn't cover all the
cases by the looks of it.
Should be all fine now, but much more intense testing is welcome.
Diffstat (limited to 'source/blender/compositor/operations/COM_CompositorOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_CompositorOperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_CompositorOperation.cpp b/source/blender/compositor/operations/COM_CompositorOperation.cpp index e3438bcbd15..c2c6a129d56 100644 --- a/source/blender/compositor/operations/COM_CompositorOperation.cpp +++ b/source/blender/compositor/operations/COM_CompositorOperation.cpp @@ -185,7 +185,7 @@ void CompositorOperation::executeRegion(rcti *rect, unsigned int tileNumber) for (y = y1; y < y2 && (!breaked); y++) { for (x = x1; x < x2 && (!breaked); x++) { - int input_x = x + dx, input_y = y + dy; + float input_x = (float)x + dx + 0.5f, input_y = (float)y + dy + 0.5f; this->m_imageInput->readSampled(color, input_x, input_y, COM_PS_NEAREST); if (this->m_useAlphaInput) { |