diff --git a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp index 18b29553..5f4f99ad 100644 --- a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp +++ b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.cpp @@ -198,6 +198,7 @@ void TileSheetEditorModel::endDrawCommand() noexcept { if (m_ongoingDrawCommand) { m_ongoingDrawCommand->finish(); m_ongoingDrawCommand = nullptr; + m_lastDrawUpdatePt = {-1, -1}; } } diff --git a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.hpp b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.hpp index 46633065..4f6945da 100644 --- a/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.hpp +++ b/src/nostalgia/modules/gfx/src/studio/tilesheeteditor/tilesheeteditormodel.hpp @@ -35,7 +35,7 @@ class TileSheetEditorModel: public ox::SignalHandler { studio::SelectionTracker m_selTracker; ox::Optional m_selection; ox::Point m_lineStartPt; - ox::Point m_lastDrawUpdatePt; + ox::Point m_lastDrawUpdatePt{-1, -1}; bool m_updated = false; public: