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"); }