소스 검색

GLTFLoader: Add loadNode hook (#25077)

Takahiro 2 년 전
부모
커밋
08497e95b9
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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':