mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-29 15:49:49 +01:00
test: fix; data -> layer data
This commit is contained in:
@@ -274,16 +274,12 @@ def _parse_tiled_objects(
|
||||
tiled_object.gid = None
|
||||
|
||||
try:
|
||||
# If any dimension is provided, they both will be
|
||||
width = float(object_element.attrib["width"])
|
||||
except KeyError:
|
||||
width = 0.0
|
||||
|
||||
try:
|
||||
height = float(object_element.attrib["height"])
|
||||
tiled_object.size = objects.Size(width, height)
|
||||
except KeyError:
|
||||
height = 0.0
|
||||
|
||||
tiled_object.size = objects.Size(width, height)
|
||||
pass
|
||||
|
||||
try:
|
||||
tiled_object.opacity = float(object_element.attrib["opacity"])
|
||||
|
||||
Reference in New Issue
Block a user