Freestyle: Fix for GetOccludeeF1D returning a one-element list containing None when it is supposed to return an empty list.

This commit is contained in:
Tamito Kajiyama 2014-05-19 21:37:07 +09:00
parent cb023ce0fd
commit 6c136a69b0
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ int GetOccludeeF1D::operator()(Interface1D& inter)
ViewEdge *ve = dynamic_cast<ViewEdge*>(&inter);
if (ve) {
ViewShape *aShape = ve->aShape();
shapesVector.push_back(aShape);
if (aShape) {
shapesVector.push_back(aShape);
}
}
else {
Interface0DIterator it = inter.verticesBegin(), itend = inter.verticesEnd();