mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: re-add textureImage if it has no id
This commit is contained in:
parent
20c46e181a
commit
1da3f9d3ad
4 changed files with 6 additions and 4 deletions
|
|
@ -639,7 +639,9 @@ export function resolveVersionConflicts(version) {
|
|||
|
||||
if (version < 1.91) {
|
||||
// from v1.90.02 texture image is always there
|
||||
if (!texture.selectAll("*").size()) {
|
||||
if (!texture.select("#textureImage").size()) {
|
||||
// cleanup old texture if it has no id and add new one
|
||||
texture.selectAll("*").remove();
|
||||
texture
|
||||
.append("image")
|
||||
.attr("id", "textureImage")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue