From aa59db7a31f904f8d6c9c3e5ffbabbd130180bf8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 30 May 2025 23:32:51 -0500 Subject: [PATCH] [nostalgia/gfx/studio/tilesheet] Fix draw command to work on same pixel after switching subsheets --- .../gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp index 5f4f99ad..62314665 100644 --- a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp +++ b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp @@ -231,6 +231,7 @@ void TileSheetEditorModel::setActiveSubsheet(TileSheet::SubSheetIdx const&idx) n m_activeSubsSheetIdx = idx; this->activeSubsheetChanged.emit(m_activeSubsSheetIdx); clearSelection(); + m_lastDrawUpdatePt = {-1, -1}; } void TileSheetEditorModel::fill(ox::Point const&pt, int const palIdx) noexcept {