fixed some invalid conditionals in RoughDiffuse, which kept texturing from working

metadata
Wenzel Jakob 2013-01-28 00:52:59 -05:00
parent f9733089fd
commit 9824c000fd
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ public:
if (child->getClass()->derivesFrom(MTS_CLASS(Texture))) {
if (name == "reflectance" || name == "diffuseReflectance")
m_reflectance = static_cast<Texture *>(child);
if (name == "alpha")
else if (name == "alpha")
m_alpha = static_cast<Texture *>(child);
else
BSDF::addChild(name, child);