fix(#932): expand cultures to get scoped cells data

This commit is contained in:
Azgaar 2023-04-15 13:32:47 +04:00
parent 1ce379dfb0
commit fb4d3a4019
2 changed files with 64 additions and 63 deletions

View file

@ -670,13 +670,13 @@ async function showHierarchy() {
});
}
function recalculateCultures(must) {
if (!must && !culturesAutoChange.checked) return;
Cultures.expand();
drawCultures();
pack.burgs.forEach(b => (b.culture = pack.cells.culture[b.cell]));
refreshCulturesEditor();
function recalculateCultures(force) {
if (force || culturesAutoChange.checked) {
Cultures.expand();
drawCultures();
pack.burgs.forEach(b => (b.culture = pack.cells.culture[b.cell]));
refreshCulturesEditor();
}
}
function enterCultureManualAssignent() {