From f6f2acd67b7e029268051651d7eca991e2996820 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/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp b/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp index c9f9f6c1..97792443 100644 --- a/src/nostalgia/modules/core/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp +++ b/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)); }