|
@@ -14,6 +14,8 @@ THREE.XHRLoader.prototype = {
|
|
|
|
|
|
load: function ( url, onLoad, onProgress, onError ) {
|
|
|
|
|
|
+ if ( this.path !== undefined ) url = this.path + url;
|
|
|
+
|
|
|
var scope = this;
|
|
|
|
|
|
var cached = THREE.Cache.get( url );
|
|
@@ -79,15 +81,21 @@ THREE.XHRLoader.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ setCrossOrigin: function ( value ) {
|
|
|
+
|
|
|
+ this.crossOrigin = value;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
setResponseType: function ( value ) {
|
|
|
|
|
|
this.responseType = value;
|
|
|
|
|
|
},
|
|
|
|
|
|
- setCrossOrigin: function ( value ) {
|
|
|
+ setPath: function ( value ) {
|
|
|
|
|
|
- this.crossOrigin = value;
|
|
|
+ this.path = value;
|
|
|
|
|
|
},
|
|
|
|