diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/math/quick_hull.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/quick_hull.cpp b/core/math/quick_hull.cpp index ed30de6915..136a103eef 100644 --- a/core/math/quick_hull.cpp +++ b/core/math/quick_hull.cpp @@ -428,6 +428,7 @@ Error QuickHull::build(const Vector<Vector3>& p_points, Geometry::MeshData &r_me List<Geometry::MeshData::Face>::Element *O = F->get().left == E ? F->get().right : F->get().left; ERR_CONTINUE(O==E); + ERR_CONTINUE(O==NULL); if (O->get().plane.is_almost_like(f.plane)) { //merge and delete edge and contiguous face, while repointing edges (uuugh!) |