@@ -209,22 +209,15 @@ export class Outliner extends OBC.Component implements OBC.Disposable {
209209 if ( modelIdMap === this . _map ) this . cleanMeshes ( ) ;
210210 if ( this . outlinePositions ) this . updatePoints ( ) ;
211211 if ( Object . keys ( modelIdMap ) . length === 0 ) return ;
212- const fragments = this . components . get ( OBC . FragmentsManager ) ;
213212 const renderer = this . getRenderer ( ) ;
214213 const outlinePass = renderer . postproduction . outlinePass ;
215214 const mesher = this . components . get ( Mesher ) ;
216215 const meshes = await mesher . get ( modelIdMap ) ;
217- for ( const modelId of Object . keys ( modelIdMap ) ) {
218- const model = fragments . list . get ( modelId ) ;
219- const invisibleItems = new Set ( await model ?. getItemsByVisibility ( false ) ) ;
220- if ( ! model ) continue ;
221- for ( const [ _ , data ] of meshes . entries ( ) ) {
222- for ( const [ localId , meshes ] of data ) {
223- if ( invisibleItems . has ( localId ) ) continue ;
224- for ( const mesh of meshes ) {
225- this . _meshes . push ( mesh ) ;
226- outlinePass . scene . add ( mesh ) ;
227- }
216+ for ( const [ _ , data ] of meshes . entries ( ) ) {
217+ for ( const [ , meshes ] of data ) {
218+ for ( const mesh of meshes ) {
219+ this . _meshes . push ( mesh ) ;
220+ outlinePass . scene . add ( mesh ) ;
228221 }
229222 }
230223 }
0 commit comments