mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-26 17:02:28 +01:00
doc: clarify question
This commit is contained in:
@@ -190,7 +190,7 @@ def _parse_layer(
|
||||
offset_x_attrib = layer_element.attrib.get("offsetx")
|
||||
offset_y_attrib = layer_element.attrib.get("offsety")
|
||||
# If any offset is present, we need to return an OrderedPair
|
||||
# Unknown if one of the offsets could be absent.
|
||||
# Unknown if only one of the offsets could be absent.
|
||||
if any([offset_x_attrib, offset_y_attrib]):
|
||||
if offset_x_attrib:
|
||||
offset_x = float(offset_x_attrib)
|
||||
|
||||
Reference in New Issue
Block a user