diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/freestyle/intern/winged_edge/Curvature.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/winged_edge/Curvature.cpp b/source/blender/freestyle/intern/winged_edge/Curvature.cpp index acefe1aa5fc..65ebdeac3a8 100644 --- a/source/blender/freestyle/intern/winged_edge/Curvature.cpp +++ b/source/blender/freestyle/intern/winged_edge/Curvature.cpp @@ -586,8 +586,14 @@ static bool sphere_clip_vector(const Vec3r& O, real r, const Vec3r& P, Vec3r& V) // use marking ? (measure *timings* ...) void compute_curvature_tensor(WVertex *start, real radius, NormalCycle& nc) { + // TODO: for some reason, the WVertex 'start' may have no associated edges + // (i.e., WVertex::_EdgeList is empty), which causes a crash due to a call + // of WVertex::_EdgeList.front(). + if (start->GetEdges().empty()) + return; + // in case we have a non-manifold vertex, skip it... - if(start->isBoundary()) + if (start->isBoundary()) return; std::set<WVertex*> vertices; |