Parcourir la source

GLTFLoader: Add loadNode hook (#25077)

Takahiro il y a 2 ans
Parent
commit
08497e95b9
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      examples/jsm/loaders/GLTFLoader.js

+ 5 - 1
examples/jsm/loaders/GLTFLoader.js

@@ -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':