fix: dupplicate buisson and ecole
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user