From 03929ae202c355b60f158ec191133a44fd9b1c09 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 30 Jun 2014 18:22:27 +0600 Subject: Fix T40878: Translate node is inconsistent --- source/blender/compositor/operations/COM_WrapOperation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/compositor/operations/COM_WrapOperation.cpp') diff --git a/source/blender/compositor/operations/COM_WrapOperation.cpp b/source/blender/compositor/operations/COM_WrapOperation.cpp index fba3e7a6da3..c30361d1df8 100644 --- a/source/blender/compositor/operations/COM_WrapOperation.cpp +++ b/source/blender/compositor/operations/COM_WrapOperation.cpp @@ -85,8 +85,8 @@ bool WrapOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOper if (m_wrappingType == CMP_NODE_WRAP_X || m_wrappingType == CMP_NODE_WRAP_XY) { // wrap only on the x-axis if tile is wrapping newInput.xmin = getWrappedOriginalXPos(input->xmin); - newInput.xmax = getWrappedOriginalXPos(input->xmax); - if (newInput.xmin > newInput.xmax) { + newInput.xmax = getWrappedOriginalXPos(input->xmax) + 0.5f; + if (newInput.xmin >= newInput.xmax) { newInput.xmin = 0; newInput.xmax = this->getWidth(); } @@ -94,8 +94,8 @@ bool WrapOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOper if (m_wrappingType == CMP_NODE_WRAP_Y || m_wrappingType == CMP_NODE_WRAP_XY) { // wrap only on the y-axis if tile is wrapping newInput.ymin = getWrappedOriginalYPos(input->ymin); - newInput.ymax = getWrappedOriginalYPos(input->ymax); - if (newInput.ymin > newInput.ymax) { + newInput.ymax = getWrappedOriginalYPos(input->ymax) + 0.5f; + if (newInput.ymin >= newInput.ymax) { newInput.ymin = 0; newInput.ymax = this->getHeight(); } -- cgit v1.2.3