Skip to content

Commit 1ba8570

Browse files
authored
Merge pull request #61 from pythonarcade/development
Version 2.1.1
2 parents 73013db + 5140622 commit 1ba8570

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

7+
## [2.1.1] - 2022-08-10
8+
9+
This version contains just one bug fix. Previously if a map or other object in the TMX format contained a [Class property](https://doc.mapeditor.org/en/stable/manual/custom-properties/#custom-types) which was added in Tiled 1.8, then pytiled-parser would crash.
10+
11+
Classes are not a supported feature in pytiled-parser yet, however the existence of them isn't intended to break the rest of the supported featureset. This fix makes the rest of the map still be able to be successfully parsed and used if one of these exists in it.
12+
13+
See [#60](https://github.com/pythonarcade/pytiled_parser/pull/60) for more info on this bug. Thanks to [laqieer](https://github.com/laqieer) for this PR.
14+
715
## [2.1.0] - 2022-08-02
816

917
This is largely a compatibility update to work with the latest version of Tiled. This version represents the first version of pytiled-parser that is compatible with the formats from Tiled 1.9. Previous versions do not work with maps or tilesets of either JSON or TMX formats from Tiled 1.9 or higher, if you need to use Tiled 1.9+ with an older version of Tiled, you will need to use Tiled's ability to save the map in compatibility mode.

pytiled_parser/parsers/tmx/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def parse(raw_properties: etree.Element) -> Properties:
1414
for raw_property in raw_properties.findall("property"):
1515

1616
type_ = raw_property.attrib.get("type")
17-
value_ = raw_property.attrib["value"]
17+
value_ = raw_property.attrib.get("value")
1818
if type_ == "file":
1919
value = Path(value_)
2020
elif type_ == "color":

pytiled_parser/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""pytiled_parser version"""
22

3-
__version__ = "2.1.0"
3+
__version__ = "2.1.1"

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = pytiled_parser
33
description = A library for parsing JSON formatted Tiled Map Editor maps and tilesets.
44
long_description = file: README.md
5+
long_description_content_type = text/markdown
56
author = Benjamin Kirkbride
67
author-email = BenjaminKirkbride@gmail.com
78
license = MIT

0 commit comments

Comments
 (0)