mirror of https://github.com/vitalif/openscad
Crashed attempting to access non-existing element. Fixes #1258
parent
f3e28ca8b4
commit
4a9d2d321a
|
@ -1180,7 +1180,7 @@ namespace CGALUtils {
|
|||
int idx = allVertices.lookup(vector_convert<Vector3f>(p));
|
||||
if (currface.empty() || idx != currface.back()) currface.push_back(idx);
|
||||
}
|
||||
if (currface.front() == currface.back()) currface.pop_back();
|
||||
if (!currface.empty() && currface.front() == currface.back()) currface.pop_back();
|
||||
if (currface.size() < 3) faces.pop_back(); // Cull empty triangles
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue