浏览代码

FBXLoader*: No need to extend Loader.

Mr.doob 8 年之前
父节点
当前提交
ad43815b46
共有 2 个文件被更改,包括 0 次插入10 次删除
  1. 0 5
      examples/js/loaders/FBXLoader.js
  2. 0 5
      examples/js/loaders/FBXLoader2.js

+ 0 - 5
examples/js/loaders/FBXLoader.js

@@ -20,17 +20,12 @@
 
 	THREE.FBXLoader = function ( manager ) {
 
-		THREE.Loader.call( this );
 		this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
 		this.textureLoader = null;
 		this.textureBasePath = null;
 
 	};
 
-	THREE.FBXLoader.prototype = Object.create( THREE.Loader.prototype );
-
-	THREE.FBXLoader.prototype.constructor = THREE.FBXLoader;
-
 	Object.assign( THREE.FBXLoader.prototype, {
 
 		load: function ( url, onLoad, onProgress, onError ) {

+ 0 - 5
examples/js/loaders/FBXLoader2.js

@@ -28,17 +28,12 @@
 	 */
 	THREE.FBXLoader = function ( manager ) {
 
-		THREE.Loader.call( this );
 		this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
 		this.fileLoader = new THREE.FileLoader( this.manager );
 		this.textureLoader = new THREE.TextureLoader( this.manager );
 
 	};
 
-	Object.assign( THREE.FBXLoader.prototype, THREE.Loader.prototype );
-
-	THREE.FBXLoader.prototype.constructor = THREE.FBXLoader;
-
 	Object.assign( THREE.FBXLoader.prototype, {
 
 		/**