redraw rivers on world config change

This commit is contained in:
Azgaar 2021-08-26 19:09:38 +03:00
parent 3be986828e
commit 5bbca40611
2 changed files with 41 additions and 24 deletions

View file

@ -1456,6 +1456,8 @@ function toggleRivers(event) {
function drawRivers() {
TIME && console.time("drawRivers");
rivers.selectAll("*").remove();
const {addMeandering, getRiverPath} = Rivers;
lineGen.curve(d3.curveCatmullRom.alpha(0.1));