From 17baa09a78950061aa40ae7d9a7ee8dcf6b1e51f Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 21 May 2022 19:46:42 +0300 Subject: [PATCH] Fractious template --- index.html | 2 -- modules/ui/heightmap-editor.js | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index f2fd6a10..e38546c0 100644 --- a/index.html +++ b/index.html @@ -7858,9 +7858,7 @@ - - diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js index 4fc7cdbe..6cf1e7ab 100644 --- a/modules/ui/heightmap-editor.js +++ b/modules/ui/heightmap-editor.js @@ -989,6 +989,10 @@ function editHeightmap(options) { HeightmapGenerator.setGraph(grid); restartHistory(); + const seed = byId("templateSeed").value; + if (seed) Math.random = aleaPRNG(seed); + restartHistory(); + for (const step of steps) { if (step.style.opacity === "0.5") continue;