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

ColladaLoader: parse() now expects a text.

上级 6eb4fffd
......@@ -100,9 +100,7 @@
parts.pop();
baseUrl = ( parts.length < 1 ? '.' : parts.join( '/' ) ) + '/';
var xmlParser = new DOMParser();
var responseXML = xmlParser.parseFromString( text, "application/xml" );
onLoad( scope.parse( responseXML, url ) );
onLoad( scope.parse( text, url ) );
}, onProgress, onError );
......@@ -120,9 +118,9 @@
},
parse: function( doc ) {
parse: function( text ) {
COLLADA = doc;
COLLADA = new DOMParser().parseFromString( text, 'text/xml' );
this.parseAsset();
this.setUpConversion();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册