File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
libs/soba/performances/src/lib Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ export class NgtsBVH {
124
124
raycaster . firstHitOnly = firstHitOnly ;
125
125
126
126
let timeoutId : ReturnType < typeof setTimeout > | undefined ;
127
+ group . visible = false ;
127
128
group . traverse ( ( child ) => {
128
129
if (
129
130
is . three < THREE . Mesh > ( child , 'isMesh' ) &&
@@ -141,6 +142,8 @@ export class NgtsBVH {
141
142
return ;
142
143
}
143
144
145
+ if ( ! group . visible ) group . visible = true ;
146
+
144
147
child . raycast = acceleratedRaycast ;
145
148
child . geometry . computeBoundsTree = computeBoundsTree ;
146
149
child . geometry . disposeBoundsTree = disposeBoundsTree ;
@@ -158,6 +161,8 @@ export class NgtsBVH {
158
161
child . raycast = THREE . Mesh . prototype . raycast ;
159
162
}
160
163
} ) ;
164
+
165
+ if ( ! group . visible ) group . visible = true ;
161
166
} ) ;
162
167
} ) ;
163
168
You can’t perform that action at this time.
0 commit comments