提交 ef9d00bb 编写于 作者: A Agniva De Sarker

Updating SVGLoader to handle comments

The documentElement will always return the svg node. Otherwise it used to fail, if there was a comment node before it. Comments are commonly seen when an svg is exported from Adobe Illustrator.
上级 7072a5d3
......@@ -25,7 +25,7 @@ THREE.SVGLoader.prototype = {
var doc = parser.parseFromString( svgString, 'image/svg+xml' ); // application/xml
onLoad( doc.firstChild );
onLoad( doc.documentElement );
}, onProgress, onError );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册