forked from mapeditor/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a few bugs in libtiled-java (mapeditor#1840)
* Make sure the properties of MapLayer is not null * Prevent MapObject's from being added twice (once manually, once with JXB) * Don't need to read properties again (already read with JXB) * Null-pointer issues with MapLayer.getBounds if x/y coordinate is null * Null-pointer issues when accessing objects list in ObjectGroup class * Add getProperty overload in Property class to allow a default value * Fix image loading issue in TMXMapReader when loading from an InputStream. Apparently this function was setting `xmlPath` to a url, not a path. * Add code to write object group attributes (previously it was completely omitted). A writeLayerAttributes method was added to write common attributes in both a tile-layer and object-group. * Fix writing of offsetx and offsety attributes.
- Loading branch information
1 parent
7971fa8
commit ddbd31b
Showing
6 changed files
with
97 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters