diff --git a/modules/dynamic/auto-update.js b/modules/dynamic/auto-update.js index e5e53785..50cf8177 100644 --- a/modules/dynamic/auto-update.js +++ b/modules/dynamic/auto-update.js @@ -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") @@ -706,7 +708,7 @@ export function resolveVersionConflicts(version) { // leftover from v1.90.02 texture.style("display", null); const textureImage = texture.select("#textureImage"); - if (textureImage) { + if (textureImage.size()) { const xlink = textureImage.attr("xlink:href"); const href = textureImage.attr("href"); const src = xlink || href; diff --git a/modules/io/load.js b/modules/io/load.js index d55e8a4a..0fe9b82b 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -452,7 +452,7 @@ async function parseLoadedData(data) { { // dynamically import and run auto-udpdate script const versionNumber = parseFloat(params[0]); - const { resolveVersionConflicts } = await import("../dynamic/auto-update.js?v=1.92.02"); + const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.92.04"); resolveVersionConflicts(versionNumber); }