[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 1m22s

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

View File

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

View File

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