forked from bartvdbraak/blender
Fix for the DensityF0D function not working as expected when the Z pass was not available.
This commit is contained in:
parent
e044891d78
commit
edfeaae918
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user