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

Merge pull request #15933 from takahirox/CTMLoaderUpdate

Remove Loader inheritance from CTMLoader
......@@ -10,11 +10,8 @@
THREE.CTMLoader = function () {
THREE.Loader.call( this );
};
THREE.CTMLoader.prototype = Object.create( THREE.Loader.prototype );
THREE.CTMLoader.prototype.constructor = THREE.CTMLoader;
// Load multiple CTM parts defined in JSON
......@@ -58,7 +55,7 @@ THREE.CTMLoader.prototype.loadParts = function ( url, callback, parameters ) {
for ( var i = 0; i < jsonObject.materials.length; i ++ ) {
materials[ i ] = scope.createMaterial( jsonObject.materials[ i ], basePath );
materials[ i ] = THREE.Loader.prototype.createMaterial( jsonObject.materials[ i ], basePath );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册