[Bf-blender-cvs] [ef51b69] master: Fix for displace node regression (reported on IRC by Sebastian Koenig): Was adding a (0.5, 0.5) offset, even for zero displacement.
Lukas Tönne
noreply at git.blender.org
Fri Mar 7 18:37:35 CET 2014
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;
}
}
More information about the Bf-blender-cvs
mailing list