浏览代码

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