[Bf-blender-cvs] [9b7d5067795] blender-v2.79-release: T52534: Compositor artifacts when scaling

Jeroen Bakker noreply at git.blender.org
Mon Sep 4 15:52:00 CEST 2017


Commit: 9b7d506779578ad48bdeb3d78b9b56dca994eacf
Author: Jeroen Bakker
Date:   Sun Sep 3 16:47:39 2017 +0200
Branches: blender-v2.79-release
https://developer.blender.org/rB9b7d506779578ad48bdeb3d78b9b56dca994eacf

T52534: Compositor artifacts when scaling

Increased the maxx and maxy area of interest when scaling in this case.

===================================================================

M	source/blender/compositor/operations/COM_ScaleOperation.cpp

===================================================================

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);



More information about the Bf-blender-cvs mailing list