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

OBJLoader: Clean up.

上级 600c9b81
......@@ -51,7 +51,7 @@ THREE.OBJLoader.prototype = {
var normals = [];
var uvs = [];
function addObject(name) {
function addObject( name ) {
var geometry = {
vertices: [],
......@@ -192,7 +192,7 @@ THREE.OBJLoader.prototype = {
}
addObject("");
addObject( '' );
// v float float float
var vertex_pattern = /^v\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/;
......@@ -306,7 +306,7 @@ THREE.OBJLoader.prototype = {
// or
// g group_name
var name = result[1].trim();
var name = result[ 1 ].trim();
if ( foundObjects === false ) {
......@@ -315,7 +315,7 @@ THREE.OBJLoader.prototype = {
} else {
addObject(name);
addObject( name );
}
......@@ -337,7 +337,7 @@ THREE.OBJLoader.prototype = {
} else {
throw new Error("Unexpected line: " + line);
throw new Error( "Unexpected line: " + line );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册