@@ -68,7 +68,11 @@ Object.assign( ImageLoader.prototype, {
}, false );
- if ( this.crossOrigin !== undefined && url.indexOf( 'data:' ) !== 0 ) image.crossOrigin = this.crossOrigin;
+ if ( url.substr( 0, 5 ) !== 'data:' ) {
+
+ if ( this.crossOrigin !== undefined ) image.crossOrigin = this.crossOrigin;
+ }
scope.manager.itemStart( url );
@@ -316,7 +316,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
if ( intersection ) {
- if ( uvs && uvs[ f ] ) {
+ if ( uvs && uvs[ f ] ) {
var uvs_f = uvs[ f ];
uvA.copy( uvs_f[ 0 ] );