diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-06-16 19:08:25 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-06-16 19:08:25 +0400 |
commit | edfeaae9180de01df64f35c86c1f751840e4c252 (patch) | |
tree | 59d366a90ab2945fe9b226b459952c5c1cfdfe6e /source/blender/freestyle/intern | |
parent | e044891d78bbedb440b63c9603913a940e9c4860 (diff) |
Fix for the DensityF0D function not working as expected when the Z pass was not available.
Diffstat (limited to 'source/blender/freestyle/intern')
-rw-r--r-- | source/blender/freestyle/intern/application/AppCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/application/AppCanvas.cpp b/source/blender/freestyle/intern/application/AppCanvas.cpp index e1f300b3ce0..f621f45ff77 100644 --- a/source/blender/freestyle/intern/application/AppCanvas.cpp +++ b/source/blender/freestyle/intern/application/AppCanvas.cpp @@ -136,8 +136,8 @@ void AppCanvas::readColorPixels(int x, int y, int w, int h, RGBImage& oImage) co int ymin = border().getMin().y(); int xmax = border().getMax().x(); int ymax = border().getMax().y(); - int rectx = _pass_z.width; - int recty = _pass_z.height; + int rectx = _pass_diffuse.width; + int recty = _pass_diffuse.height; float xfac = ((float)rectx) / ((float)(xmax - xmin)); float yfac = ((float)recty) / ((float)(ymax - ymin)); #if 0 |