[nostalgia/studio] Fix TileSheetEditor to switch to appropriate subsheet on undo/redo

This commit is contained in:
2022-05-18 21:15:11 -05:00
parent 71f6364ea3
commit 6854e658a0
12 changed files with 158 additions and 52 deletions
@@ -74,7 +74,7 @@ class TileSheetEditorImGui: public studio::BaseEditor {
void draw(core::Context*) noexcept override;
void drawSubsheetSelector(TileSheet::SubSheet*, TileSheet::SubSheetIdx *path) noexcept;
void drawSubsheetSelector(TileSheet::SubSheet*, TileSheet::SubSheetIdx *path);
studio::UndoStack *undoStack() noexcept final;
@@ -114,7 +114,7 @@ class TileSheetEditorImGui: public studio::BaseEditor {
private:
ox::Error updateAfterClicked() noexcept;
ox::Error markUnsavedChanges(int) noexcept;
ox::Error markUnsavedChanges(const studio::UndoCommand*) noexcept;
};