From bc3c5d2b86a6794ad21f898ecad15d4c5775348c Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 24 May 2022 23:27:06 +0300 Subject: [PATCH] heightmap - fix issues --- modules/ui/heightmap-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js index 6cf1e7ab..da4722c8 100644 --- a/modules/ui/heightmap-editor.js +++ b/modules/ui/heightmap-editor.js @@ -991,6 +991,8 @@ function editHeightmap(options) { const seed = byId("templateSeed").value; if (seed) Math.random = aleaPRNG(seed); + + HeightmapGenerator.resetHeights(); restartHistory(); for (const step of steps) {