Skip to content

Commit 08497e9

Browse files
authored
GLTFLoader: Add loadNode hook (#25077)
1 parent ad2d035 commit 08497e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/jsm/loaders/GLTFLoader.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,11 @@ class GLTFParser {
25402540
break;
25412541

25422542
case 'node':
2543-
dependency = this.loadNode( index );
2543+
dependency = this._invokeOne( function ( ext ) {
2544+
2545+
return ext.loadNode && ext.loadNode( index );
2546+
2547+
} );
25442548
break;
25452549

25462550
case 'mesh':

0 commit comments

Comments
 (0)