[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
All checks were successful
Build / build (push) Successful in 1m22s
This commit is contained in:
parent
65df731abb
commit
cb25e610bb
@ -198,6 +198,7 @@ void TileSheetEditorModel::endDrawCommand() noexcept {
|
||||
if (m_ongoingDrawCommand) {
|
||||
m_ongoingDrawCommand->finish();
|
||||
m_ongoingDrawCommand = nullptr;
|
||||
m_lastDrawUpdatePt = {-1, -1};
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user