From d50e4b3f78a906cfe3cf9895f5a78d928e81112e Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 07:51:21 -0700 Subject: [PATCH] feat(editor): invert button in sculpt panel alongside reset --- tools/editor/editor_ui.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 78705331..606206c9 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -537,10 +537,15 @@ void EditorUI::renderBrushPanel(EditorApp& app) { app.getTerrainEditor().scaleHeights(hScale); app.showToast("Heights scaled"); } - if (ImGui::Button("Reset to Flat", ImVec2(-1, 0))) { + if (ImGui::Button("Reset to Flat", ImVec2(130, 0))) { app.getTerrainEditor().resetToFlat(); app.showToast("Terrain reset to flat"); } + ImGui::SameLine(); + if (ImGui::Button("Invert", ImVec2(130, 0))) { + app.getTerrainEditor().invertHeights(); + app.showToast("Heights inverted"); + } ImGui::TextColored(ImVec4(0.6f, 0.6f, 0.6f, 1), "Scale: exaggerate (>1) or flatten (<1) relief"); }