Skip to content

Commit

Permalink
[HUBS] [Upcoming] GLTFLoader: Add loadNode hook
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
takahirox committed Dec 7, 2022
1 parent 1f90c60 commit f282aec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/jsm/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,11 @@ class GLTFParser {
break;

case 'node':
dependency = this.loadNode( index );
dependency = this._invokeOne( function ( ext ) {

return ext.loadNode && ext.loadNode( index );

} );
break;

case 'mesh':
Expand Down

0 comments on commit f282aec

Please sign in to comment.