Browse Source

Merge pull request #10329 from kevanstannard/fix-svg-file-loading

Fix Loading an SVG with TextureLoader
Mr.doob 8 years ago
parent
commit
64a8a04846
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/loaders/FileLoader.js

+ 1 - 1
src/loaders/FileLoader.js

@@ -184,7 +184,7 @@ Object.assign( FileLoader.prototype, {
 			if ( this.responseType !== undefined ) request.responseType = this.responseType;
 			if ( this.responseType !== undefined ) request.responseType = this.responseType;
 			if ( this.withCredentials !== undefined ) request.withCredentials = this.withCredentials;
 			if ( this.withCredentials !== undefined ) request.withCredentials = this.withCredentials;
 
 
-			if ( request.overrideMimeType ) request.overrideMimeType( this.mimeType !== undefined ? this.mimeType : 'text/plain' );
+			if ( this.mimeType && request.overrideMimeType ) request.overrideMimeType( this.mimeType );
 
 
 			request.send( null );
 			request.send( null );