[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50079] trunk/blender/source/blender/ compositor/operations/COM_GlareGhostOperation.cpp: Fix for

Jeroen Bakker j.bakker at atmind.nl
Tue Aug 21 12:45:01 CEST 2012


Revision: 50079
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50079
Author:   jbakker
Date:     2012-08-21 10:45:01 +0000 (Tue, 21 Aug 2012)
Log Message:
-----------
Fix for
 * [#32356] Problem with "Ghost" in the "Glare" Node in Compositor

Modified Paths:
--------------
    trunk/blender/source/blender/compositor/operations/COM_GlareGhostOperation.cpp

Modified: trunk/blender/source/blender/compositor/operations/COM_GlareGhostOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_GlareGhostOperation.cpp	2012-08-21 10:44:10 UTC (rev 50078)
+++ trunk/blender/source/blender/compositor/operations/COM_GlareGhostOperation.cpp	2012-08-21 10:45:01 UTC (rev 50079)
@@ -83,11 +83,11 @@
 		for (x = 0; x < gbuf->getWidth(); x++) {
 			u = (float)(x + 0.5f) / (float)gbuf->getWidth();
 			s = (u - 0.5f) * sc + 0.5f, t = (v - 0.5f) * sc + 0.5f;
-			tbuf1->read(c, s * gbuf->getWidth(), t * gbuf->getHeight());
+			tbuf1->readCubic(c, s * gbuf->getWidth(), t * gbuf->getHeight());
 			sm = smoothMask(s, t);
 			mul_v3_fl(c, sm);
 			s = (u - 0.5f) * isc + 0.5f, t = (v - 0.5f) * isc + 0.5f;
-			tbuf2->read(tc, s * gbuf->getWidth() - 0.5f, t * gbuf->getHeight() - 0.5f);
+			tbuf2->readCubic(tc, s * gbuf->getWidth() - 0.5f, t * gbuf->getHeight() - 0.5f);
 			sm = smoothMask(s, t);
 			madd_v3_v3fl(c, tc, sm);
 
@@ -108,7 +108,7 @@
 					np = (n << 2) + p;
 					s = (u - 0.5f) * scalef[np] + 0.5f;
 					t = (v - 0.5f) * scalef[np] + 0.5f;
-					gbuf->read(c, s * gbuf->getWidth() - 0.5f, t * gbuf->getHeight() - 0.5f);
+					gbuf->readCubic(c, s * gbuf->getWidth() - 0.5f, t * gbuf->getHeight() - 0.5f);
 					mul_v3_v3(c, cm[np]);
 					sm = smoothMask(s, t) * 0.25f;
 					madd_v3_v3fl(tc, c, sm);




More information about the Bf-blender-cvs mailing list