post-merge fixes

This commit is contained in:
Peter 2022-11-27 14:46:31 -05:00
parent c24a786519
commit f3396941e4
5 changed files with 81 additions and 109 deletions

View file

@ -3,7 +3,7 @@
function editHeightmap(options) {
const {mode, tool} = options || {};
restartHistory();
viewbox.insert('g', '#terrs').attr('id', 'heights');
viewbox.insert("g", "#terrs").attr("id", "heights");
if (!mode) showModeDialog();
else enterHeightmapEditMode(mode);
@ -982,9 +982,6 @@ function editHeightmap(options) {
const steps = byId("templateBody").querySelectorAll("#templateBody > div");
if (!steps.length) return;
const seed = byId("templateSeed").value;
if (seed) Math.random = aleaPRNG(seed);
grid.cells.h = createTypedArray({maxValue: 100, length: grid.points.length});
HeightmapGenerator.setGraph(grid);
restartHistory();