[nostalgia/core/studio/tilesheeteditor] Add back file type check for palette drop
This commit is contained in:
parent
0146d38405
commit
f6f2acd67b
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user