#Fix missing default value in "field" integrator (#66)

metadata
Tobias Rittig 2018-07-12 16:40:49 +02:00 committed by Wenzel Jakob
parent edf4470fe8
commit 57b1d117c1
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ public:
m_undefined = Spectrum(props.getFloat("undefined")); m_undefined = Spectrum(props.getFloat("undefined"));
else else
m_undefined = props.getSpectrum("undefined", Spectrum(0.0f)); 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 if (SPECTRUM_SAMPLES != 3 && (m_field == EUV || m_field == EShadingNormal || m_field == EGeometricNormal