[nostalgia/core/studio/tilesheeteditor] Add back file type check for palette drop

This commit is contained in:
Gary Talent 2025-01-19 18:21:50 -06:00
parent 0146d38405
commit f6f2acd67b

View File

@ -445,7 +445,7 @@ void TileSheetEditorImGui::drawPaletteMenu() noexcept {
}
if (ig::DragDropTarget const dragDropTarget; dragDropTarget) {
auto const [ref, err] = ig::getDragDropPayload<studio::FileRef>("FileRef");
if (!err) {
if (!err && endsWith(ref.path, FileExt_npal)) {
if (ref.path != m_selectedPalette) {
oxLogError(m_model.setPalette(ref.path));
}