feat(editor): invert button in sculpt panel alongside reset

This commit is contained in:
Kelsi 2026-05-05 07:51:21 -07:00
parent 825939db3b
commit d50e4b3f78

View file

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