diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-19 16:37:07 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-05-20 10:12:12 +0400 |
commit | 6c136a69b0bb097ce5f11aeee6ef6d2ba56cdf64 (patch) | |
tree | d8058a37c6dfe470d3d500eefacc93a0cf010c51 /source/blender/freestyle | |
parent | cb023ce0fd1a0cd0844e938363585d0dcdd565ec (diff) |
Freestyle: Fix for GetOccludeeF1D returning a one-element list containing None when it is supposed to return an empty list.
Diffstat (limited to 'source/blender/freestyle')
-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(); |