未验证 提交 fcc530f7 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18625 from Mugen87/dev11

ObjectLoader: Remove usage of LegacyJSONLoader.
......@@ -419,17 +419,7 @@ ObjectLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
case 'Geometry':
if ( 'THREE' in window && 'LegacyJSONLoader' in THREE ) {
var geometryLoader = new THREE.LegacyJSONLoader();
geometry = geometryLoader.parse( data, this.resourcePath ).geometry;
} else {
console.error( 'THREE.ObjectLoader: You have to import LegacyJSONLoader in order load geometry data of type "Geometry".' );
}
console.error( 'THREE.ObjectLoader: Loading "Geometry" is not supported anymore.' );
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册