Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmx_xml.c parse_object incorrectly identifies tile shapes as rectangles #14

Closed
howprice opened this issue Aug 12, 2015 · 1 comment
Closed
Assignees
Labels

Comments

@howprice
Copy link

Using Tiled Version 0.12.3. If a Tile is added to an object layer it produces a line in the .tmx file something like this:

<object id="6" gid="4" x="136" y="216" width="8" height="8"/>

In tmx_xml.c parse_object() if the gid attribute exists then the shape is identified as S_TILE. However immediately afterwards, if the height attribute is present the shape is re-classified incorrectly as S_SQUARE.

@baylej baylej added the bug label Aug 16, 2015
@baylej baylej self-assigned this Aug 16, 2015
@baylej
Copy link
Owner

baylej commented Aug 16, 2015

Hi @howprice,

It's weird that Tiled produced this line, because the height and width properties have no meaning for a tile object, maybe it's a new feature in Tiled 12 that is not documented yet.

But this line must be parsed as a tile, not a square, I will fix that soon.
In the meanwhile, you can remove the height and width attributes so then it won't be identified as a square.

Thank you for reporting.

@baylej baylej closed this as completed in 30436e3 Aug 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants