diff --git a/src/bsdfs/twosided.cpp b/src/bsdfs/twosided.cpp index df44a295..5fbd6cc8 100644 --- a/src/bsdfs/twosided.cpp +++ b/src/bsdfs/twosided.cpp @@ -47,9 +47,6 @@ public: void configure() { if (!m_nestedBRDF) Log(EError, "TwoSidedBRDF: A child BRDF instance is required"); - if (m_combinedType & BSDF::ETransmission) - Log(EError, "TwoSidedBRDF: only BRDF child instances (without " - "transmission) are supported"); m_usesRayDifferentials = m_nestedBRDF->usesRayDifferentials(); m_componentCount = m_nestedBRDF->getComponentCount(); if (m_type) @@ -60,6 +57,9 @@ public: m_type[i] = m_nestedBRDF->getType(i) | EFrontSide | EBackSide; m_combinedType |= m_type[i]; } + if (m_combinedType & BSDF::ETransmission) + Log(EError, "TwoSidedBRDF: only BRDF child instances (without " + "transmission) are supported"); } Spectrum getDiffuseReflectance(const Intersection &its) const { diff --git a/src/librender/util.cpp b/src/librender/util.cpp index d7a3c9d2..4aaf73df 100644 --- a/src/librender/util.cpp +++ b/src/librender/util.cpp @@ -30,6 +30,7 @@ ref Utility::loadScene(const std::string &filename, FileResolver *resolver = Thread::getThread()->getFileResolver(); SAXParser* parser = new SAXParser(); fs::path schemaPath = resolver->resolveAbsolute("schema/scene.xsd"); + Log(EDebug, "Loading scene \"%s\" ..", filename.c_str()); /* Check against the 'scene.xsd' XML Schema */ parser->setDoSchema(true);