mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-27 14:52:15 +01:00
rf: assume that there will always be a layer name
This commit is contained in:
@@ -184,11 +184,7 @@ def _parse_layer(
|
||||
"""
|
||||
id_ = int(layer_element.attrib["id"])
|
||||
|
||||
# FIXME: create example layer with no name (if possible)
|
||||
if "name" in layer_element.attrib:
|
||||
name = layer_element.attrib["name"]
|
||||
else:
|
||||
name = None
|
||||
name = layer_element.attrib["name"]
|
||||
|
||||
offset: Optional[objects.OrderedPair]
|
||||
offset_x_attrib = layer_element.attrib.get("offsetx")
|
||||
|
||||
Reference in New Issue
Block a user