diff --git a/src/bsdfs/roughdiffuse.cpp b/src/bsdfs/roughdiffuse.cpp index df4c02e5..a107a1f8 100644 --- a/src/bsdfs/roughdiffuse.cpp +++ b/src/bsdfs/roughdiffuse.cpp @@ -254,7 +254,7 @@ public: if (child->getClass()->derivesFrom(MTS_CLASS(Texture))) { if (name == "reflectance" || name == "diffuseReflectance") m_reflectance = static_cast(child); - if (name == "alpha") + else if (name == "alpha") m_alpha = static_cast(child); else BSDF::addChild(name, child);