Skip to content

Commit

Permalink
Merge pull request #61 from pythonarcade/development
Browse files Browse the repository at this point in the history
Version 2.1.1
  • Loading branch information
Cleptomania authored Aug 10, 2022
2 parents 73013db + 5140622 commit 1ba8570
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

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

## [2.1.1] - 2022-08-10

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.

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.

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.

## [2.1.0] - 2022-08-02

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.
Expand Down
2 changes: 1 addition & 1 deletion pytiled_parser/parsers/tmx/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def parse(raw_properties: etree.Element) -> Properties:
for raw_property in raw_properties.findall("property"):

type_ = raw_property.attrib.get("type")
value_ = raw_property.attrib["value"]
value_ = raw_property.attrib.get("value")
if type_ == "file":
value = Path(value_)
elif type_ == "color":
Expand Down
2 changes: 1 addition & 1 deletion pytiled_parser/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""pytiled_parser version"""

__version__ = "2.1.0"
__version__ = "2.1.1"
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = pytiled_parser
description = A library for parsing JSON formatted Tiled Map Editor maps and tilesets.
long_description = file: README.md
long_description_content_type = text/markdown
author = Benjamin Kirkbride
author-email = BenjaminKirkbride@gmail.com
license = MIT
Expand Down

0 comments on commit 1ba8570

Please sign in to comment.