Handle 'subsurface' plugins specified directly following the 'scene' tag
parent
0705019528
commit
d15000d4db
|
@ -7,6 +7,7 @@
|
|||
<xsd:element name="sensor" type="sensor"/>
|
||||
<xsd:element name="texture" type="texture"/>
|
||||
<xsd:element name="bsdf" type="bsdf"/>
|
||||
<xsd:element name="subsurface" type="object"/>
|
||||
<xsd:element name="integrator" type="integrator"/>
|
||||
<xsd:element name="emitter" type="emitter"/>
|
||||
<xsd:element name="shape" type="shape"/>
|
||||
|
|
|
@ -476,6 +476,7 @@ void Scene::addChild(const std::string &name, ConfigurableObject *child) {
|
|||
m_integrator = static_cast<Integrator *>(child);
|
||||
} else if (cClass->derivesFrom(MTS_CLASS(Texture))
|
||||
|| cClass->derivesFrom(MTS_CLASS(BSDF))
|
||||
|| cClass->derivesFrom(MTS_CLASS(Subsurface))
|
||||
|| cClass->derivesFrom(MTS_CLASS(PhaseFunction))) {
|
||||
m_objects.push_back(static_cast<ConfigurableObject *>(child));
|
||||
} else if (cClass->derivesFrom(MTS_CLASS(Medium))) {
|
||||
|
|
Loading…
Reference in New Issue