提交 3f48ca63 编写于 作者: M Mugen87

VRMLLoader: Fixed parsing bug when comments were present in the file.

上级 c570b9bd
......@@ -1050,6 +1050,10 @@ THREE.VRMLLoader.prototype = {
var line = lines[ i ];
// The # symbol indicates that all subsequent text, until the end of the line is a comment,
// and should be ignored. (see http://www.agocg.ac.uk/train/vrml2rep/part1/guide3.htm)
line = line.replace( /(#.*)/, '' );
// split lines with {..{ or {..[ - some have both
if ( /{.*[{\[]/.test( line ) ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册