light: make a certain degenerate face non-fatal

seen compiling ad_sepulcher.map with qbism q2 tools
This commit is contained in:
Eric Wasylishen 2021-08-29 20:43:55 -06:00
parent 8beda9a039
commit 968a840e47
1 changed files with 4 additions and 1 deletions

View File

@ -370,7 +370,10 @@ static edgeToFaceMap_t MakeEdgeToFaceMap(const mbsp_t *bsp)
const auto edge = make_pair(v0, v1);
auto &edgeFacesRef = result[edge];
Q_assert(find(begin(edgeFacesRef), end(edgeFacesRef), f) == end(edgeFacesRef));
if (find(begin(edgeFacesRef), end(edgeFacesRef), f) != end(edgeFacesRef)) {
// another sort of degenerate face where the same edge A->B appears more than once on the face
continue;
}
edgeFacesRef.push_back(f);
}
}