From 1da3f9d3ad55f634516e4a11982765dd1f074ee5 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 14 Aug 2023 15:24:59 +0400 Subject: [PATCH] fix: re-add textureImage if it has no id --- index.html | 2 +- modules/dynamic/auto-update.js | 4 +++- modules/io/load.js | 2 +- versioning.js | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 090b9078..8c2e5da1 100644 --- a/index.html +++ b/index.html @@ -8007,7 +8007,7 @@ - + diff --git a/modules/dynamic/auto-update.js b/modules/dynamic/auto-update.js index 47dc5aa2..588a8f69 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") diff --git a/modules/io/load.js b/modules/io/load.js index 328f56a0..1a2fa03c 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -435,7 +435,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.03"); + const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.92.04"); resolveVersionConflicts(versionNumber); } diff --git a/versioning.js b/versioning.js index a384b243..6c8d1c94 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.92.03"; // generator version, update each time +const version = "1.92.04"; // generator version, update each time { document.title += " v" + version;