From c302364d24c3befc24ee71a1be97db62d621f8c3 Mon Sep 17 00:00:00 2001 From: Kihwan Choi Date: Thu, 2 May 2024 10:50:50 +0900 Subject: [PATCH] Fix to only render objects with visible true --- src/core/utils/StaticGeometryGenerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils/StaticGeometryGenerator.js b/src/core/utils/StaticGeometryGenerator.js index 89c571dee..5c9e27975 100644 --- a/src/core/utils/StaticGeometryGenerator.js +++ b/src/core/utils/StaticGeometryGenerator.js @@ -13,7 +13,7 @@ function flatTraverseMeshes( objects, cb ) { for ( let i = 0, l = objects.length; i < l; i ++ ) { const object = objects[ i ]; - object.traverse( o => { + object.traverseVisible( o => { if ( o.isMesh ) {