From 17577b6e8b6f7ab9aaae2ba20ac64f1675a0f7eb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 22 Jun 2025 01:00:56 -0500 Subject: [PATCH] [nostalgia/gfx/studio/tilesheet] Disable paste when nothing is selected --- .../gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp index aee2a581..db2e2480 100644 --- a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp +++ b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditor-imgui.cpp @@ -194,6 +194,7 @@ void TileSheetEditorImGui::keyStateChanged(turbine::Key const key, bool const do void TileSheetEditorImGui::draw(studio::Context&) noexcept { setCopyEnabled(m_model.hasSelection()); setCutEnabled(m_model.hasSelection()); + setPasteEnabled(m_model.hasSelection()); if (ig::mainWinHasFocus() && m_tool == TileSheetTool::Select) { if (ImGui::IsKeyDown(ImGuiKey_ModCtrl) && !m_palPathFocused) { if (ImGui::IsKeyPressed(ImGuiKey_A)) {