Fix editor crash when converting sprite to 2D mesh

This commit is contained in:
Chaosus 2019-03-04 17:20:16 +03:00
parent 9dd9737cb4
commit 8b5e070ec7

View file

@ -91,6 +91,8 @@ Vector<Vector2> expand(const Vector<Vector2> &points, const Rect2i &rect, float
Vector<Vector2> outPoints;
ClipperLib::PolyNode *p2 = out.GetFirst();
ERR_FAIL_COND_V(!p2, points);
while (p2->IsHole()) {
p2 = p2->GetNext();
}