提交 64a8a048 编写于 作者: M Mr.doob 提交者: GitHub

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

Fix Loading an SVG with TextureLoader
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册