Skip to content
Snippets Groups Projects
Unverified Commit 290d805c authored by Matt Hall's avatar Matt Hall Committed by GitHub
Browse files

Merge pull request #77 from JoNil/pr1

Fixed loading of referenced tilesets when they are in a folders
parents 12accd70 3995fa77
No related branches found
No related tags found
No related merge requests found
......@@ -426,7 +426,7 @@ impl Tileset {
TiledError::MalformedAttributes("tileset must have a firstgid, name tile width and height with correct types".to_string())
);
let tileset_path = map_path.ok_or(TiledError::Other("Maps with external tilesets must know their file location. See parse_with_path(Path).".to_string()))?.with_file_name(source);
let tileset_path = map_path.ok_or(TiledError::Other("Maps with external tilesets must know their file location. See parse_with_path(Path).".to_string()))?.join(source);
let file = File::open(&tileset_path).map_err(|_| {
TiledError::Other(format!(
"External tileset file not found: {:?}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment