Explorar el Código

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

Fix Loading an SVG with TextureLoader
Mr.doob hace 8 años
padre
commit
64a8a04846
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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.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 );