Commit: ef51b690090967f5576b88a528a79c5defb1ddd4
Author: Lukas Tönne
Date:   Fri Mar 7 18:31:05 2014 +0100
https://developer.blender.org/rBef51b690090967f5576b88a528a79c5defb1ddd4

Fix for displace node regression (reported on IRC by Sebastian Koenig):
Was adding a (0.5, 0.5) offset, even for zero displacement.

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

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

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

diff --git a/source/blender/compositor/operations/COM_DisplaceOperation.cpp 
b/source/blender/compositor/operations/COM_DisplaceOperation.cpp
index 2842b47..7dacc32 100644
--- a/source/blender/compositor/operations/COM_DisplaceOperation.cpp
+++ b/source/blender/compositor/operations/COM_DisplaceOperation.cpp
@@ -72,8 +72,8 @@ bool DisplaceOperation::read_displacement(float x, float y, 
float xscale, float
        else {
                float col[4];
                m_inputVectorProgram->readSampled(col, x, y, COM_PS_BILINEAR);
-               r_u = origin[0] - col[0] * xscale + 0.5f;
-               r_v = origin[1] - col[1] * yscale + 0.5f;
+               r_u = origin[0] - col[0] * xscale;
+               r_v = origin[1] - col[1] * yscale;
                return true;
        }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to