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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to