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

Fixes loading external Tiled tilesets with relative images #4247

Merged
merged 1 commit into from Jan 17, 2017

Conversation

xSke
Copy link
Contributor

@xSke xSke commented Aug 14, 2016

This commit fixes a bug when loading external tilesets with external images.

Consider the following directory structure:

root/
    tilemap.tmx [refers to tileset as "tiles/tileset.tsx"]
    tiles/
        tileset.tsx [refers to images as "tile#.png"]
        tile1.png
        tile2.png

Previously, it would try to load the images using the tilemap's location as a base, so it would look for images in root/tile#.png. Now, it will load from root/tiles/tile#.png as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants