diff options
-rw-r--r-- | source/blender/freestyle/intern/view_map/Functions1D.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/view_map/Functions1D.cpp b/source/blender/freestyle/intern/view_map/Functions1D.cpp index f29da6680bf..11e0cc37d4d 100644 --- a/source/blender/freestyle/intern/view_map/Functions1D.cpp +++ b/source/blender/freestyle/intern/view_map/Functions1D.cpp @@ -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(); |