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

[Tiled] Fixed duplication of path in helper tilesheet loading #525

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kim-fg
Copy link

@kim-fg kim-fg commented Mar 27, 2024

The provided tiled load handler duplicated path for tilesheets due to it being handled as relative to the .tmx file it is used in.

Error:

2024-03-27T21:48:21.803906Z  INFO platformer_2d::bevy_ecs_tilemap::helpers::tiled: Loaded map: tiled/dev_env/dev_env.tmx
2024-03-27T21:48:21.803980Z ERROR bevy_asset::server: Path not found: C:\<PROJECT_PATH>\assets\tiled/dev_env\tiled/dev_env\dev_env_tilesheet.png

This PR removes that code and expects img.source to be correct. This was tested both with tilesheet .png in same dir as .tmx file and in a subfolder.

@kim-fg kim-fg changed the title Fixed duplication of path in tilesheet loading [Tiled] Fixed duplication of path in helper tilesheet loading Mar 27, 2024
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.

2 participants