提交 c2e6781b 编写于 作者: T Takahiro

Remove Loader inheritance from CTMLoader

上级 579e8d25
......@@ -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.
先完成此消息的编辑!
想要评论请 注册