Browse Source

FBXLoader*: No need to extend Loader.

Mr.doob 8 năm trước cách đây
mục cha
commit
ad43815b46
2 tập tin đã thay đổi với 0 bổ sung10 xóa
  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, {
 
 		/**