[nostalgia/core/studio] Get Undo/Redo working
This commit is contained in:
@@ -28,9 +28,6 @@ class TileSheetEditorImGui: public studio::Editor {
|
||||
float m_palViewWidth = 200;
|
||||
geo::Vec2 m_prevMouseDownPos;
|
||||
|
||||
// palette view vars
|
||||
std::size_t m_palIdx = 0;
|
||||
|
||||
public:
|
||||
TileSheetEditorImGui(Context *ctx, const ox::String &path);
|
||||
|
||||
@@ -50,6 +47,8 @@ class TileSheetEditorImGui: public studio::Editor {
|
||||
|
||||
void draw(core::Context*) noexcept override;
|
||||
|
||||
virtual studio::UndoStack *undoStack() noexcept override;
|
||||
|
||||
protected:
|
||||
void saveItem() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user