Browse Source

Merge pull request #7232 from agnivade/agnivade-svgpatch

Updating SVGLoader to handle comments
Mr.doob 10 years ago
parent
commit
c85e896ff2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/SVGLoader.js

+ 1 - 1
examples/js/loaders/SVGLoader.js

@@ -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 );