From 57b1d117c15f59fae72b06085c08a4ef507d3b67 Mon Sep 17 00:00:00 2001 From: Tobias Rittig Date: Thu, 12 Jul 2018 16:40:49 +0200 Subject: [PATCH] #Fix missing default value in "field" integrator (#66) --- src/integrators/misc/field.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/integrators/misc/field.cpp b/src/integrators/misc/field.cpp index 9710721e..213db0b5 100644 --- a/src/integrators/misc/field.cpp +++ b/src/integrators/misc/field.cpp @@ -98,6 +98,8 @@ public: m_undefined = Spectrum(props.getFloat("undefined")); else m_undefined = props.getSpectrum("undefined", Spectrum(0.0f)); + } else { + m_undefined = Spectrum(0.0f); } if (SPECTRUM_SAMPLES != 3 && (m_field == EUV || m_field == EShadingNormal || m_field == EGeometricNormal