mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: textureImage is not defined
This commit is contained in:
parent
1847270482
commit
f7cb157cf3
4 changed files with 7 additions and 7 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue