fix(editor): Generate Complete Zone resets terrain first for clean slate

This commit is contained in:
Kelsi 2026-05-05 07:54:26 -07:00
parent 5f9bf5c924
commit d247aee728

View file

@ -823,6 +823,9 @@ void EditorApp::generateCompleteZone() {
if (!terrain_.isLoaded()) return; if (!terrain_.isLoaded()) return;
showToast("Generating zone..."); showToast("Generating zone...");
// Step 0: Reset first for clean slate
terrainEditor_.resetToFlat();
// Step 1: Apply noise // Step 1: Apply noise
terrainEditor_.applyNoise(0.005f, 30.0f, 4, 42); terrainEditor_.applyNoise(0.005f, 30.0f, 4, 42);