Skip to content

Commit

Permalink
fix: regenerate heigtmap preview to use current graph size
Browse files Browse the repository at this point in the history
  • Loading branch information
Azgaar committed Feb 14, 2024
1 parent 02f5381 commit bc88ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dynamic/heightmap-selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,6 @@ function confirmHeightmapEdit() {
function getHeightmapPreview(heights) {
const scheme = getColorScheme(byId("heightmapSelectionColorScheme").value);
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;
}

0 comments on commit bc88ad4

Please sign in to comment.