mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-05 16:43:52 +00:00
feat(editor): invert button in sculpt panel alongside reset
This commit is contained in:
parent
825939db3b
commit
d50e4b3f78
1 changed files with 6 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue