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

OBJLoader: Do not fail with unexpected lines.

上级 62b0767f
......@@ -622,7 +622,7 @@ THREE.OBJLoader = ( function () {
// Handle null terminated files without exception
if ( line === '\0' ) continue;
throw new Error( 'THREE.OBJLoader: Unexpected line: "' + line + '"' );
console.warn( 'THREE.OBJLoader: Unexpected line: "' + line + '"' );
}
......
......@@ -639,7 +639,7 @@ var OBJLoader = ( function () {
// Handle null terminated files without exception
if ( line === '\0' ) continue;
throw new Error( 'THREE.OBJLoader: Unexpected line: "' + line + '"' );
console.warn( 'THREE.OBJLoader: Unexpected line: "' + line + '"' );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册