Merge pull request #26590 from Chaosus/fix_sprite_region_crash
Fix editor crash when converting sprite to 2D mesh
This commit is contained in:
commit
878950db16
|
@ -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 New Issue