mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: #1174
This commit is contained in:
parent
66d22f26c0
commit
50ee5150c1
5 changed files with 18 additions and 35 deletions
|
|
@ -1249,7 +1249,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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -367,10 +367,7 @@ function editProvinces() {
|
|||
function updateStatesPostRelease(oldStates, newStates) {
|
||||
const allStates = unique([...oldStates, ...newStates]);
|
||||
|
||||
layerIsOn("toggleProvinces") && toggleProvinces();
|
||||
layerIsOn("toggleStates") ? drawStates() : toggleStates();
|
||||
layerIsOn("toggleBorders") ? drawBorders() : toggleBorders();
|
||||
|
||||
BurgsAndStates.getPoles();
|
||||
BurgsAndStates.collectStatistics();
|
||||
BurgsAndStates.defineStateForms(newStates);
|
||||
drawStateLabels(allStates);
|
||||
|
|
@ -382,6 +379,10 @@ function editProvinces() {
|
|||
COArenderer.add("state", stateId, coa, ...pole);
|
||||
});
|
||||
|
||||
layerIsOn("toggleProvinces") && toggleProvinces();
|
||||
layerIsOn("toggleStates") ? drawStates() : toggleStates();
|
||||
layerIsOn("toggleBorders") ? drawBorders() : toggleBorders();
|
||||
|
||||
unfog();
|
||||
closeDialogs();
|
||||
editStates();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue