Browse Source

OBJLoader: Added support for floats with e- and e+.

Mr.doob 13 years ago
parent
commit
ac296e14f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/OBJLoader.js

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

@@ -66,7 +66,7 @@ THREE.OBJLoader.prototype.parse = function ( data ) {
 	// v float float float
 	// ["v 1.0 2.0 3.0", "1.0", "2.0", "3.0"]
 
-	pattern = /v( [\-|\d|.]+)( [\-|\d|.]+)( [\-|\d|.]+)/g;
+	pattern = /v( [\d|\.|\+|\-|e]+)( [\d|\.|\+|\-|e]+)( [\d|\.|\+|\-|e]+)/g;
 
 	while ( ( result = pattern.exec( data ) ) != null ) {