This commit is contained in:
Pieter Vander Vennet 2024-04-25 00:01:20 +02:00
parent a368dfbe6c
commit 8c65448834
3 changed files with 20 additions and 5 deletions

View file

@ -475,7 +475,13 @@ class AddDependencyLayersToTheme extends DesugaringStep<LayoutConfigJson> {
)
}
}
layers.unshift(...dependencies.map((l) => l.config))
/**
* Must be added to the _end_ of the layer list:
* - Imagine that 'walls_and_buildings' is added...
* - but there is a layer about a specific type of building already
* Adding it up front would cause 'walls_and_buildings' to be triggered
*/
layers.push(...dependencies.map((l) => l.config))
return {
...theme,