From a349d40868c00469452f14877214bb9447f6ac84 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 19 Nov 2023 16:53:10 +0400 Subject: [PATCH] fix: don't update texture if there is no texture --- index.html | 2 +- modules/io/load.js | 2 +- versioning.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index a9435f1c..2d9cce78 100644 --- a/index.html +++ b/index.html @@ -7987,7 +7987,7 @@ - + diff --git a/modules/io/load.js b/modules/io/load.js index 928339fd..9e4e5e5d 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -471,7 +471,7 @@ async function parseLoadedData(data) { { // add custom texture if any const textureHref = texture.attr("data-href"); - updateTextureSelectValue(textureHref); + if (textureHref) updateTextureSelectValue(textureHref); } void (function checkDataIntegrity() { diff --git a/versioning.js b/versioning.js index 7ab7933a..5e83376b 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.94.00"; // generator version, update each time +const version = "1.94.01"; // generator version, update each time { document.title += " v" + version;