Skip to content

Commit f282aec

Browse files
committed
[HUBS] [Upcoming] GLTFLoader: Add loadNode hook
[HUBS] This change is needed for glTF LOD support. This change is not merged into the official Three.js but likely it can get in soon. mrdoob#25077 We can remove this commit if the PR is merged to the official Three.js and upgrading our Three.js fork to the one including the change.
1 parent 1f90c60 commit f282aec

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)