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

Merge pull request #79 from mattyhall/revert-77-pr1

Revert "Fixed loading of referenced tilesets when they are in a folders"
parents 8cd4588c 4a267378
No related branches found
No related tags found
No related merge requests found
......@@ -436,7 +436,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()))?.join(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()))?.with_file_name(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