|
@@ -31,6 +31,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
var loader = new THREE.FileLoader( scope.manager );
|
|
|
|
|
|
+ loader.setPath( this.path );
|
|
|
loader.setResponseType( 'arraybuffer' );
|
|
|
|
|
|
loader.load( url, function ( data ) {
|
|
@@ -64,6 +65,13 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ setPath: function ( value ) {
|
|
|
+
|
|
|
+ this.path = value;
|
|
|
+ return this;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
setResourcePath: function ( value ) {
|
|
|
|
|
|
this.resourcePath = value;
|