From b320d33e00da7d9f1e64d0d78c0443e578d89874 Mon Sep 17 00:00:00 2001 From: FernandoYu Date: Tue, 24 Jun 2025 15:09:27 -0300 Subject: [PATCH] fix: update path in aztec.yaml and adjust map image path handling in editor_window.cpp --- assets/tile_sheets/aztec.yaml | 2 +- editor/editor_window.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/tile_sheets/aztec.yaml b/assets/tile_sheets/aztec.yaml index 2bac3a0c..2ba0a848 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 d085718b..efc82fcb 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"]) {