You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix editor crash when converting sprite to 2D mesh
This commit is contained in:
@@ -91,6 +91,8 @@ Vector<Vector2> expand(const Vector<Vector2> &points, const Rect2i &rect, float
|
|||||||
|
|
||||||
Vector<Vector2> outPoints;
|
Vector<Vector2> outPoints;
|
||||||
ClipperLib::PolyNode *p2 = out.GetFirst();
|
ClipperLib::PolyNode *p2 = out.GetFirst();
|
||||||
|
ERR_FAIL_COND_V(!p2, points);
|
||||||
|
|
||||||
while (p2->IsHole()) {
|
while (p2->IsHole()) {
|
||||||
p2 = p2->GetNext();
|
p2 = p2->GetNext();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user