[nostalgia/gfx/studio/tilesheet] Fix manual redo of draw actions, fix drawing to pixel 0, 0 as first action
All checks were successful
Build / build (push) Successful in 1m15s

This commit is contained in:
Gary Talent 2025-05-29 22:12:10 -05:00
parent b55993294a
commit cce5f52f96
2 changed files with 2 additions and 1 deletions

View File

@ -198,6 +198,7 @@ void TileSheetEditorModel::endDrawCommand() noexcept {
if (m_ongoingDrawCommand) {
m_ongoingDrawCommand->finish();
m_ongoingDrawCommand = nullptr;
m_lastDrawUpdatePt = {-1, -1};
}
}

View File

@ -35,7 +35,7 @@ class TileSheetEditorModel: public ox::SignalHandler {
studio::SelectionTracker m_selTracker;
ox::Optional<studio::Selection> m_selection;
ox::Point m_lineStartPt;
ox::Point m_lastDrawUpdatePt;
ox::Point m_lastDrawUpdatePt{-1, -1};
bool m_updated = false;
public: