fix: re-add textureImage if it has no id

This commit is contained in:
Azgaar 2023-08-14 15:24:59 +04:00
parent 20c46e181a
commit 1da3f9d3ad
4 changed files with 6 additions and 4 deletions

View file

@ -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")