fix #1020: recreate texture if it's missing

This commit is contained in:
Azgaar 2023-11-22 20:35:55 +04:00
parent 3353789146
commit c3cfffec87
3 changed files with 11 additions and 2 deletions

View file

@ -346,6 +346,15 @@ async function parseLoadedData(data) {
burgLabels = labels.select("#burgLabels");
})();
void (function addMissingElements() {
if (!texture.size()) {
texture = viewbox
.insert("g", "#landmass")
.attr("id", "texture")
.attr("data-href", "./images/textures/plaster.jpg");
}
})();
void (function parseGridData() {
grid = JSON.parse(data[6]);