bugfix to make Yoran's scene render correctly

metadata
Wenzel Jakob 2012-10-12 00:18:21 -04:00
parent 3767fd4868
commit d5b944d6a3
1 changed files with 4 additions and 2 deletions

View File

@ -289,13 +289,15 @@ Float Path::miWeight(const Scene *scene, const Path &emitterSubpath,
for (int i=0; i<=s; ++i) {
const PathVertex *v = emitterSubpath.vertex(i);
connectable[pos] = v->isConnectable();
isNull[pos++] = v->isNullInteraction();
isNull[pos] = v->isNullInteraction() && !connectable[pos];
pos++;
}
for (int i=t; i>=0; --i) {
const PathVertex *v = sensorSubpath.vertex(i);
connectable[pos] = v->isConnectable();
isNull[pos++] = v->isNullInteraction();
isNull[pos] = v->isNullInteraction() && !connectable[pos];
pos++;
}
if (k <= 3)