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