vector vs point confusion in constvolume.cpp

metadata
Wenzel Jakob 2013-01-27 20:46:52 -05:00
parent 4d75c69d4a
commit 1505fd7c02
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public:
if (m_type == Properties::EFloat)
m_float = props.getFloat("value");
else if (m_type == Properties::EPoint)
else if (m_type == Properties::EVector)
m_vector = props.getVector("value");
else if (m_type == Properties::ESpectrum)
m_spectrum = props.getSpectrum("value");
@ -72,7 +72,7 @@ public:
m_type = stream->readInt();
if (m_type == Properties::EFloat)
m_float = stream->readFloat();
else if (m_type == Properties::EPoint)
else if (m_type == Properties::EVector)
m_vector = Vector(stream);
else if (m_type == Properties::ESpectrum)
m_spectrum = Spectrum(stream);