feat: routes - lock routes

This commit is contained in:
Azgaar 2024-08-12 00:33:14 +02:00
parent a83d7bab85
commit b4653c1aff
7 changed files with 69 additions and 23 deletions

View file

@ -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();
}