diff --git a/src/jasper/modules/world/src/studio/worldobjectseteditor/worldobjectseteditor-imgui.cpp b/src/jasper/modules/world/src/studio/worldobjectseteditor/worldobjectseteditor-imgui.cpp index 8df9120..a70b5b0 100644 --- a/src/jasper/modules/world/src/studio/worldobjectseteditor/worldobjectseteditor-imgui.cpp +++ b/src/jasper/modules/world/src/studio/worldobjectseteditor/worldobjectseteditor-imgui.cpp @@ -32,7 +32,7 @@ WorldObjectSetEditorImGui::WorldObjectSetEditorImGui( m_doc{*readObj(keelCtx(m_sctx), itemPath()).unwrapThrow()}, m_tileSheet{readObj(keelCtx(m_sctx), m_doc.tilesheet) .or_value(keel::AssetRef{})}, - m_tsPicker{"Tile Sheet Chooser", keelCtx(m_sctx), ngfx::FileExt_nts}, + m_tsPicker{"Tile Sheet Chooser", keelCtx(m_sctx), ngfx::FileExts_TileSheet}, m_addPalPopup{"Palette Chooser", keelCtx(m_sctx), ngfx::FileExt_npal} { auto &kctx = keelCtx(m_sctx); auto const [tsPath, err] = getPath(kctx, m_doc.tilesheet); @@ -114,7 +114,7 @@ void WorldObjectSetEditorImGui::drawTileSheetSelector() noexcept { ig::InputTextWithHint("##Tile Sheet", "Path to Tile Sheet", m_tilesheetPath, tsFlags); if (ig::DragDropTarget const d; d) { auto const [fr, err] = ig::getDragDropPayload("FileRef"); - if (!err && endsWith(fr.path, ngfx::FileExt_ng)) { + if (!err && ngfx::isTileSheet(fr.path)) { oxLogError(setTileSheet(fr.path)); } }