mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
feat: routes - lock routes
This commit is contained in:
parent
a83d7bab85
commit
b4653c1aff
7 changed files with 69 additions and 23 deletions
|
|
@ -117,10 +117,10 @@ async function openEmblemEditor() {
|
|||
}
|
||||
|
||||
function regenerateRoutes() {
|
||||
pack.routes = [];
|
||||
pack.cells.routes = {};
|
||||
const locked = pack.routes.filter(route => route.lock).map((route, index) => ({...route, i: index}));
|
||||
Routes.generate(locked);
|
||||
|
||||
routes.selectAll("path").remove();
|
||||
Routes.generate();
|
||||
if (layerIsOn("toggleRoutes")) drawRoutes();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue