fixed a potential crash issue in the photon mapper

metadata
Wenzel Jakob 2012-10-06 15:02:38 -04:00
parent d15000d4db
commit d11914fdc1
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ public:
bool hasDelta = false;
for (size_t i=0; i<scene->getShapes().size(); ++i) {
const BSDF *bsdf = scene->getShapes()[i]->getBSDF();
if (bsdf->getType() & BSDF::EDelta)
if (bsdf && bsdf->getType() & BSDF::EDelta)
hasDelta = true;
}