From 16c32273accd8eb5280219321dfdd6df6c5a8f64 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 19 Jan 2025 16:49:31 -0600 Subject: [PATCH] [nostalgia/core/studio/tilesheeteditor] Fix palette drop target to only take palettes --- .../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 5211211e..8cc7c9ab 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)) { auto const oldVal = m_selectedPaletteIdx; std::ignore = ox::findIdx(files.begin(), files.end(), ref.path).moveTo(m_selectedPaletteIdx); if (oldVal != m_selectedPaletteIdx) {