Update xml_parser.py

This commit is contained in:
gavincz
2019-12-15 14:09:47 +01:00
committed by GitHub
parent 5fd6a0b9f7
commit b0efa81cdb

View File

@@ -317,7 +317,7 @@ def _parse_objects(
pass
try:
tiled_object.rotation = int(object_element.attrib["rotation"])
tiled_object.rotation = float(object_element.attrib["rotation"])
except KeyError:
pass