diff options
Diffstat (limited to 'source/blender/freestyle/intern/winged_edge')
-rw-r--r-- | source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp b/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp index 620601df5e7..63f65988fc9 100644 --- a/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp +++ b/source/blender/freestyle/intern/winged_edge/WingedEdgeBuilder.cpp @@ -200,7 +200,7 @@ bool WingedEdgeBuilder::buildWShape(WShape &shape, IndexedFaceSet &ifs) delete[] new_vertices; delete[] new_normals; - if (shape.GetFaceList().size() == 0) { // this may happen due to degenerate triangles + if (shape.GetFaceList().empty()) { // this may happen due to degenerate triangles return false; } @@ -219,8 +219,8 @@ bool WingedEdgeBuilder::buildWShape(WShape &shape, IndexedFaceSet &ifs) if ((*wv)->isBoundary()) { continue; } - if ((*wv)->GetEdges().size() == - 0) { // This means that the WVertex has no incoming edges... (12-Sep-2011 T.K.) + if ((*wv)->GetEdges().empty()) { + // This means that the WVertex has no incoming edges... (12-Sep-2011 T.K.) continue; } normalsSet.clear(); |