fixed minor issue in AreaLight::toString()
parent
3781651694
commit
88be826331
|
@ -210,7 +210,12 @@ public:
|
||||||
oss << "AreaLight[" << endl
|
oss << "AreaLight[" << endl
|
||||||
<< " radiance = " << m_radiance.toString() << "," << endl
|
<< " radiance = " << m_radiance.toString() << "," << endl
|
||||||
<< " samplingWeight = " << m_samplingWeight << "," << endl
|
<< " samplingWeight = " << m_samplingWeight << "," << endl
|
||||||
<< " surfaceArea = " << m_shape->getSurfaceArea() << "," << endl
|
<< " surfaceArea = ";
|
||||||
|
if (m_shape)
|
||||||
|
oss << m_shape->getSurfaceArea();
|
||||||
|
else
|
||||||
|
oss << "<no shape attached!>";
|
||||||
|
oss << "," << endl
|
||||||
<< " medium = " << indent(m_medium.toString()) << endl
|
<< " medium = " << indent(m_medium.toString()) << endl
|
||||||
<< "]";
|
<< "]";
|
||||||
return oss.str();
|
return oss.str();
|
||||||
|
|
Loading…
Reference in New Issue