Merge branch 'master' of https://github.com/Azgaar/Fantasy-Map-Generator into burg-groups

This commit is contained in:
Azgaar 2024-12-13 12:41:51 +01:00
commit af1833f45a
4 changed files with 16 additions and 30 deletions

View file

@ -1060,7 +1060,7 @@ function refreshAllEditors() {
// dynamically loaded editors
async function editStates() {
if (customization) return;
const Editor = await import("../dynamic/editors/states-editor.js?v=1.104.0");
const Editor = await import("../dynamic/editors/states-editor.js?v=1.106.1");
Editor.open();
}

View file

@ -371,6 +371,7 @@ function editProvinces() {
layerIsOn("toggleStates") ? drawStates() : toggleStates();
layerIsOn("toggleBorders") ? drawBorders() : toggleBorders();
States.getPoles();
States.findNeighbors();
States.collectStatistics();
States.defineStateForms(newStates);
@ -383,6 +384,10 @@ function editProvinces() {
COArenderer.add("state", stateId, coa, ...pole);
});
layerIsOn("toggleProvinces") && toggleProvinces();
layerIsOn("toggleStates") ? drawStates() : toggleStates();
layerIsOn("toggleBorders") ? drawBorders() : toggleBorders();
unfog();
closeDialogs();
editStates();