|
@@ -1,6 +1,6 @@
|
|
import { AnimationClip } from '../animation/AnimationClip.js';
|
|
import { AnimationClip } from '../animation/AnimationClip.js';
|
|
import { FileLoader } from './FileLoader.js';
|
|
import { FileLoader } from './FileLoader.js';
|
|
-import { DefaultLoadingManager } from './LoadingManager.js';
|
|
|
|
|
|
+import { Loader } from './Loader.js';
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author bhouston / http://clara.io/
|
|
* @author bhouston / http://clara.io/
|
|
@@ -8,11 +8,11 @@ import { DefaultLoadingManager } from './LoadingManager.js';
|
|
|
|
|
|
function AnimationLoader( manager ) {
|
|
function AnimationLoader( manager ) {
|
|
|
|
|
|
- this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
|
|
|
|
|
|
+ Loader.call( this, manager );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-Object.assign( AnimationLoader.prototype, {
|
|
|
|
|
|
+AnimationLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
|
|
|
load: function ( url, onLoad, onProgress, onError ) {
|
|
load: function ( url, onLoad, onProgress, onError ) {
|
|
|
|
|
|
@@ -42,13 +42,6 @@ Object.assign( AnimationLoader.prototype, {
|
|
|
|
|
|
return animations;
|
|
return animations;
|
|
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- setPath: function ( value ) {
|
|
|
|
-
|
|
|
|
- this.path = value;
|
|
|
|
- return this;
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
} );
|
|
} );
|