File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libs/core/src/lib/renderer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export class NgtRenderer2 implements Renderer2 {
159159
160160 const threeName = kebabToPascal ( name . startsWith ( 'ngt-' ) ? name . slice ( 4 ) : name ) ;
161161 const threeTarget = this . catalogue [ threeName ] ;
162- //
162+
163163 if ( threeTarget ) {
164164 const threeInstance = prepare ( new threeTarget ( ...injectedArgs ) , name ) ;
165165 const rendererNode = createRendererNode ( 'three' , threeInstance , this . document ) ;
@@ -168,7 +168,7 @@ export class NgtRenderer2 implements Renderer2 {
168168
169169 // auto-attach for geometry and material
170170 if ( is . three < THREE . BufferGeometry > ( threeInstance , 'isBufferGeometry' ) ) {
171- Object . assign ( instanceState , { attach : [ 'geometry' ] } ) ;
171+ instanceState . attach = [ 'geometry' ] ;
172172 } else if ( is . three < THREE . Material > ( threeInstance , 'isMaterial' ) ) {
173173 instanceState . attach = [ 'material' ] ;
174174 }
You can’t perform that action at this time.
0 commit comments