From aed6e00aac386cb0c8c6ad27697c2bf8232e9428 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 08:07:49 -0700 Subject: [PATCH] feat(editor): Generate Complete Zone now includes water fill + beach smoothing --- tools/editor/editor_app.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index c4feb3d8..7bc8516b 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -849,6 +849,11 @@ void EditorApp::generateCompleteZone() { // Step 5: Slope paint (rock on cliffs) texturePainter_.autoPaintBySlope(0.4f, "Tileset\\Desolace\\DesolaceRock01.blp"); + // Step 6: Fill low areas with water and smooth beaches + float waterLevel = terrain_.chunks[0].position[2] + 5.0f; + terrainEditor_.fillWater(waterLevel, 0); + terrainEditor_.smoothBeaches(waterLevel, 12.0f); + // Refresh auto mesh = terrainEditor_.regenerateMesh(); viewport_.clearTerrain();