Skip to content

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

Open
kim-fg wants to merge 1 commit into
StarArawn:mainfrom
kim-fg:fix_tiled_example_helper
Open

[Tiled] Fixed duplication of path in helper tilesheet loading#525
kim-fg wants to merge 1 commit into
StarArawn:mainfrom
kim-fg:fix_tiled_example_helper

Conversation

@kim-fg
Copy link
Copy Markdown

@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