[Bf-blender-cvs] [0ef5780] : 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
Wed Mar 12 18:15:53 CET 2014
Commit: 0ef578067cb888772d79e82ab61cace92164a37d
Author: Lukas Tönne
Date: Fri Mar 7 18:31:05 2014 +0100
https://developer.blender.org/rB0ef578067cb888772d79e82ab61cace92164a37d
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