forked from MapComplete/MapComplete
Fix: fix #2534
This commit is contained in:
parent
5c382a7721
commit
a394853a51
2 changed files with 23 additions and 1 deletions
|
@ -895,9 +895,11 @@ class LayerOverviewUtils extends Script {
|
|||
)
|
||||
}
|
||||
if (printAssets) {
|
||||
console.log("Creating needed_assets-file")
|
||||
const images = Lists.dedup(
|
||||
Array.from(sharedThemes.values()).flatMap((th) => th._usedImages ?? [])
|
||||
)
|
||||
).flatMap(path => ScriptUtils.detectVariablePaths(path))
|
||||
|
||||
writeFileSync("needed_assets.csv", images.join("\n"))
|
||||
console.log("Written needed_assets.csv")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue