mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.4.64
This commit is contained in:
parent
16a89c6727
commit
89b2174084
3 changed files with 4 additions and 2 deletions
|
|
@ -962,7 +962,7 @@ function drawGrid() {
|
|||
TIME && console.time("drawGrid");
|
||||
gridOverlay.selectAll("*").remove();
|
||||
const type = styleGridType.value;
|
||||
const size = Math.max(+styleGridSize.value, 2);
|
||||
const size = Math.max(+styleGridSize.value || +gridOverlay.attr("size"), 2);
|
||||
if (type === "pointyHex" || type === "flatHex") {
|
||||
const points = getHexGridPoints(size, type);
|
||||
const hex = "m" + getHex(size, type).slice(0, 4).join("l");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue