hotfix: texture on version update

This commit is contained in:
Azgaar 2023-08-11 19:16:30 +04:00
parent 454fc9ca3e
commit c3a385b2c9

View file

@ -705,5 +705,16 @@ export function resolveVersionConflicts(version) {
// leftover from v1.90.02
texture.style("display", null);
const textureImage = texture.select("#textureImage");
if (textureImage) {
const xlink = textureImage.attr("xlink:href");
const href = textureImage.attr("href");
const src = xlink || href;
if (src) {
textureImage.attr("src", src);
textureImage.attr("xlink:href", null);
}
}
}
}