From 0907bb5ca2e859cfb200ce415969f82266a5870e Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 08:25:46 -0700 Subject: [PATCH] feat(editor): undo/redo status in Info panel --- tools/editor/editor_ui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index dd7a983e..aea9936c 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -1824,6 +1824,11 @@ void EditorUI::renderPropertiesPanel(EditorApp& app) { } ImGui::Separator(); + // Undo/redo status + auto& hist = app.getTerrainEditor().history(); + if (hist.canUndo() || hist.canRedo()) + ImGui::Text("Undo: %zu Redo: %zu", hist.undoCount(), hist.redoCount()); + if (app.getTerrainEditor().hasUnsavedChanges()) ImGui::TextColored(ImVec4(1, 0.8f, 0.3f, 1), "* Unsaved (Ctrl+S to save)"); else