Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-02-08 05:36:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-08 05:36:41 +0300
commitf77110e789beda945d3725f19e6090ed20e2c613 (patch)
treef2897581befc759b8f34d80a493bca2eb273da6a /source/blender/compositor/operations/COM_RenderLayersProg.cpp
parentba1ca9148dad37667dae4ffb2fb75e4eedf02a77 (diff)
Fix T47347: Z-pass defaults to zero
Use the same default value for Z-depth in the compositor as everywhere else.
Diffstat (limited to 'source/blender/compositor/operations/COM_RenderLayersProg.cpp')
-rw-r--r--source/blender/compositor/operations/COM_RenderLayersProg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_RenderLayersProg.cpp b/source/blender/compositor/operations/COM_RenderLayersProg.cpp
index 2a45690a9f2..543ca0f7c11 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);