template editor: allow single value

This commit is contained in:
Azgaar 2021-06-13 16:42:47 +03:00
parent 2be590ab24
commit e3da664e56
3 changed files with 233 additions and 142 deletions

View file

@ -950,7 +950,8 @@ function editHeightmap() {
for (const s of steps) {
if (s.style.opacity == 0.5) continue;
const type = s.getAttribute("data-type");
const type = s.dataset.type;
const elCount = s.querySelector(".templateCount") || "";
const elHeight = s.querySelector(".templateHeight") || "";