Skip to content

Commit

Permalink
Merge pull request #74 from eruvanos/fix-all-layers-reported-as-toplevel
Browse files Browse the repository at this point in the history
Fix all layers being reported as top level in TMX parser
  • Loading branch information
Cleptomania authored Aug 23, 2024
2 parents d2b8b91 + db22f6a commit c88c3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytiled_parser/parsers/tmx/tiled_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse(file: Path) -> TiledMap:
)

layers = []
for element in raw_map.iter():
for element in raw_map.findall("./*"):
if element.tag in ["layer", "objectgroup", "imagelayer", "group"]:
layers.append(parse_layer(element, parent_dir))

Expand Down

0 comments on commit c88c3cc

Please sign in to comment.