fixed a potential crash issue in the photon mapper
parent
d15000d4db
commit
d11914fdc1
|
@ -207,7 +207,7 @@ public:
|
||||||
bool hasDelta = false;
|
bool hasDelta = false;
|
||||||
for (size_t i=0; i<scene->getShapes().size(); ++i) {
|
for (size_t i=0; i<scene->getShapes().size(); ++i) {
|
||||||
const BSDF *bsdf = scene->getShapes()[i]->getBSDF();
|
const BSDF *bsdf = scene->getShapes()[i]->getBSDF();
|
||||||
if (bsdf->getType() & BSDF::EDelta)
|
if (bsdf && bsdf->getType() & BSDF::EDelta)
|
||||||
hasDelta = true;
|
hasDelta = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue