fix: dupplicate buisson and ecole

This commit is contained in:
Tom Boullay
2026-05-14 16:13:32 +02:00
parent d376d0ba6b
commit dba7aec6fa
3 changed files with 41 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ interface LoadedMapNode {
const MAP_STRUCTURE_NODE_NAMES = new Set(["Scene", "blocking"]);
const LITE_MAP_SKIPPED_NODE_NAMES = new Set([
"arbre",
"buissons",
"buisson",
"champdeble",
"champdesoja",
"champsdetournesol",
+3 -1
View File
@@ -30,7 +30,9 @@ function extractVegetationData(mapNodes: MapNode[]): VegetationData {
if (!config.enabled) continue;
const instances = mapNodes
.filter((node) => node.name === config.mapName)
.filter(
(node) => node.name === config.mapName && node.type === "Object3D",
)
.map(mapNodeToInstance);
if (instances.length > 0) {