From 583cdc62b446f5e2e370475b2ba2448100da02eb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 19 Jan 2025 18:21:50 -0600 Subject: [PATCH] [nostalgia/core/studio/tilesheeteditor] Add back file type check for palette drop --- .../core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/nostalgia/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp b/deps/nostalgia/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp index c9f9f6c..9779244 100644 --- a/deps/nostalgia/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp +++ b/deps/nostalgia/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp @@ -445,7 +445,7 @@ void TileSheetEditorImGui::drawPaletteMenu() noexcept { } if (ig::DragDropTarget const dragDropTarget; dragDropTarget) { auto const [ref, err] = ig::getDragDropPayload("FileRef"); - if (!err) { + if (!err && endsWith(ref.path, FileExt_npal)) { if (ref.path != m_selectedPalette) { oxLogError(m_model.setPalette(ref.path)); }