fixed minor issue in AreaLight::toString()

metadata
Wenzel Jakob 2013-11-29 15:30:07 +01:00
parent 3781651694
commit 88be826331
1 changed files with 7 additions and 2 deletions

View File

@ -210,8 +210,13 @@ public:
oss << "AreaLight[" << endl
<< " radiance = " << m_radiance.toString() << "," << endl
<< " samplingWeight = " << m_samplingWeight << "," << endl
<< " surfaceArea = " << m_shape->getSurfaceArea() << "," << endl
<< " medium = " << indent(m_medium.toString()) << endl
<< " surfaceArea = ";
if (m_shape)
oss << m_shape->getSurfaceArea();
else
oss << "<no shape attached!>";
oss << "," << endl
<< " medium = " << indent(m_medium.toString()) << endl
<< "]";
return oss.str();
}