mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
fix: regenerate heigtmap preview to use current graph size
This commit is contained in:
parent
02f5381214
commit
bc88ad49db
1 changed files with 1 additions and 1 deletions
|
|
@ -314,6 +314,6 @@ function confirmHeightmapEdit() {
|
||||||
function getHeightmapPreview(heights) {
|
function getHeightmapPreview(heights) {
|
||||||
const scheme = getColorScheme(byId("heightmapSelectionColorScheme").value);
|
const scheme = getColorScheme(byId("heightmapSelectionColorScheme").value);
|
||||||
const renderOcean = byId("heightmapSelectionRenderOcean").checked;
|
const renderOcean = byId("heightmapSelectionRenderOcean").checked;
|
||||||
const dataUrl = drawHeights({heights, width: grid.cellsX, height: grid.cellsY, scheme, renderOcean});
|
const dataUrl = drawHeights({heights, width: graph.cellsX, height: graph.cellsY, scheme, renderOcean});
|
||||||
return dataUrl;
|
return dataUrl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue