diff --git a/assets/tile_sheets/aztec.yaml b/assets/tile_sheets/aztec.yaml index 2bac3a0..2ba0a84 100644 --- a/assets/tile_sheets/aztec.yaml +++ b/assets/tile_sheets/aztec.yaml @@ -1,6 +1,6 @@ name: aztec tile_size: 32 -path: assets/gfx/tiles/default_aztec.png +path: ../assets/gfx/tiles/default_aztec.png tiles: - id: 70 x: 1 diff --git a/editor/editor_window.cpp b/editor/editor_window.cpp index d085718..efc82fc 100644 --- a/editor/editor_window.cpp +++ b/editor/editor_window.cpp @@ -215,6 +215,8 @@ void EditorWindow::add_tile_buttons() { YAML::Node map_data = YAML::LoadFile(fileInfo.absoluteFilePath().toStdString()); QString map_image_path = QString::fromStdString(map_data["path"].as()); + map_image_path = map_image_path.replace("../", ""); + int tile_size = map_data["tile_size"].as(); for (const auto& tile_data: map_data["tiles"]) {