提交 ac296e14 编写于 作者: M Mr.doob

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

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