diff --git a/examples/js/loaders/OBJLoader.js b/examples/js/loaders/OBJLoader.js index 4149b5c4982636c5e3d27fee6bdc2f74be1c4de8..cfe309a7789e3504c1e5a24d0ec6e918b963dfe8 100644 --- a/examples/js/loaders/OBJLoader.js +++ b/examples/js/loaders/OBJLoader.js @@ -286,19 +286,17 @@ THREE.OBJLoader = ( function () { this.addVertex( ia, ib, ic ); - if ( ua !== undefined ) { + if ( ua !== undefined && ua !== '' ) { var uvLen = this.uvs.length; - ia = this.parseUVIndex( ua, uvLen ); ib = this.parseUVIndex( ub, uvLen ); ic = this.parseUVIndex( uc, uvLen ); - this.addUV( ia, ib, ic ); } - if ( na !== undefined ) { + if ( na !== undefined && na !== '' ) { // Normals are many times the same. If so, skip function call and parseInt. var nLen = this.normals.length;