mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
v1.3.5
This commit is contained in:
parent
6ba8a5d81d
commit
e0027dd258
3 changed files with 14 additions and 4 deletions
|
|
@ -100,7 +100,7 @@ function editHeightmap() {
|
|||
if (tooltip.dataset.main) showMainTip();
|
||||
|
||||
// move radius circle if drag mode is active
|
||||
const pressed = document.querySelector("#brushesButtons > button.pressed");
|
||||
const pressed = document.getElementById("brushesButtons").querySelector("button.pressed");
|
||||
if (!pressed) return;
|
||||
moveCircle(p[0], p[1], brushRadius.valueAsNumber, "#333");
|
||||
}
|
||||
|
|
@ -151,7 +151,8 @@ function editHeightmap() {
|
|||
else if (mode === "risk") restoreRiskedData();
|
||||
|
||||
// restore initial layers
|
||||
viewbox.select("#heights").remove();
|
||||
//viewbox.select("#heights").remove();
|
||||
document.getElementById("heights").remove();
|
||||
turnButtonOff("toggleHeight");
|
||||
document.getElementById("mapLayers").querySelectorAll("li").forEach(function(e) {
|
||||
if (editHeightmap.layers.includes(e.id) && !layerIsOn(e.id)) e.click(); // turn on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue