mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): terrain mirror X/Y for symmetric zone design
- Mirror X: copies left half of terrain to right half (mirrored) - Mirror Y: copies top half to bottom half (mirrored) - Useful for creating symmetric zones, arenas, or balanced landscapes - Auto-stitches all chunk edges after mirror for seamless results - UI buttons in Sculpt panel under "Mirror Terrain" section
This commit is contained in:
parent
ac88aed250
commit
dd2b9294b5
3 changed files with 61 additions and 0 deletions
|
|
@ -459,6 +459,17 @@ void EditorUI::renderBrushPanel(EditorApp& app) {
|
|||
}
|
||||
|
||||
ImGui::Separator();
|
||||
if (ImGui::CollapsingHeader("Mirror Terrain")) {
|
||||
if (ImGui::Button("Mirror X (Left<>Right)", ImVec2(-1, 0))) {
|
||||
app.getTerrainEditor().mirrorX();
|
||||
app.showToast("Terrain mirrored X");
|
||||
}
|
||||
if (ImGui::Button("Mirror Y (Top<>Bottom)", ImVec2(-1, 0))) {
|
||||
app.getTerrainEditor().mirrorY();
|
||||
app.showToast("Terrain mirrored Y");
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::CollapsingHeader("Stamp / Clone")) {
|
||||
auto& brush2 = app.getTerrainEditor().brush();
|
||||
if (ImGui::Button("Copy Stamp", ImVec2(120, 0)) && brush2.isActive())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue