Browse Source

Merge pull request #15171 from phg1024/patch-1

OBJLoader: Fix parsing of vertex colors
Mr.doob 6 years ago
parent
commit
57da68e5fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/OBJLoader.js

+ 1 - 1
examples/js/loaders/OBJLoader.js

@@ -459,7 +459,7 @@ THREE.OBJLoader = ( function () {
 								parseFloat( data[ 2 ] ),
 								parseFloat( data[ 3 ] )
 							);
-							if ( data.length === 8 ) {
+							if ( data.length >= 7 ) {
 
 								state.colors.push(
 									parseFloat( data[ 4 ] ),