[Bf-blender-cvs] [f77110e] master: Fix T47347: Z-pass defaults to zero
Campbell Barton
noreply at git.blender.org
Mon Feb 8 03:47:30 CET 2016
Commit: f77110e789beda945d3725f19e6090ed20e2c613
Author: Campbell Barton
Date: Mon Feb 8 13:36:41 2016 +1100
Branches: master
https://developer.blender.org/rBf77110e789beda945d3725f19e6090ed20e2c613
Fix T47347: Z-pass defaults to zero
Use the same default value for Z-depth in the compositor as everywhere else.
===================================================================
M source/blender/compositor/operations/COM_RenderLayersProg.cpp
===================================================================
diff --git a/source/blender/compositor/operations/COM_RenderLayersProg.cpp b/source/blender/compositor/operations/COM_RenderLayersProg.cpp
index 2a45690..543ca0f 100644
--- a/source/blender/compositor/operations/COM_RenderLayersProg.cpp
+++ b/source/blender/compositor/operations/COM_RenderLayersProg.cpp
@@ -277,7 +277,7 @@ void RenderLayersDepthProg::executePixelSampled(float output[4], float x, float
float *inputBuffer = this->getInputBuffer();
if (inputBuffer == NULL || ix < 0 || iy < 0 || ix >= (int)this->getWidth() || iy >= (int)this->getHeight() ) {
- output[0] = 0.0f;
+ output[0] = 10e10f;
}
else {
unsigned int offset = (iy * this->getWidth() + ix);
More information about the Bf-blender-cvs
mailing list