From 74391fc075cb5b951b7ba98a2b6cd48562aa1f07 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 23 Nov 2024 23:13:13 +0100 Subject: [PATCH] Update pytmx.py --- pytmx/pytmx.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytmx/pytmx.py b/pytmx/pytmx.py index 7d40621..48dc310 100644 --- a/pytmx/pytmx.py +++ b/pytmx/pytmx.py @@ -1508,6 +1508,7 @@ def __init__(self, parent, node, custom_types) -> None: self.closed = True self.template = None self.custom_types = custom_types + self.ellipse = False self.parse_xml(node) @@ -1558,6 +1559,8 @@ def read_points(text): points = read_points(polyline.get("points")) self.closed = False + self.ellipse = node.find("ellipse") is not None + if points: x1 = x2 = y1 = y2 = 0 for x, y in points: