three-gpu-pathtracer 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -914,7 +914,7 @@ function flatTraverseMeshes( objects, cb ) {
914
914
  for ( let i = 0, l = objects.length; i < l; i ++ ) {
915
915
 
916
916
  const object = objects[ i ];
917
- object.traverse( o => {
917
+ object.traverseVisible( o => {
918
918
 
919
919
  if ( o.isMesh ) {
920
920