fix: textureImage is not defined

This commit is contained in:
Azgaar 2023-08-08 17:07:10 +04:00
parent 1847270482
commit f7cb157cf3
4 changed files with 7 additions and 7 deletions

View file

@ -637,10 +637,11 @@ export function resolveVersionConflicts(version) {
});
}
if (version < 1.9) {
if (version < 1.91) {
// from v1.90.02 texture image is always there
if (!texture.selectAll("*").size()) {
texture.style("display", "none");
texture
.append("image")
.attr("id", "textureImage")
@ -649,9 +650,7 @@ export function resolveVersionConflicts(version) {
.attr("preserveAspectRatio", "xMidYMid slice")
.attr("src", "https://i2.wp.com/azgaar.files.wordpress.com/2021/10/marble-big.jpg");
}
}
if (version < 1.91) {
// from 1.91.00 custom coa is moved to coa object
pack.states.forEach(state => {
if (state.coa === "custom") state.coa = {custom: true};