Fix editor crash when converting sprite to 2D mesh
This commit is contained in:
parent
9dd9737cb4
commit
8b5e070ec7
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue