提交 78bb5bae 编写于 作者: M Mr.doob

Fixed more bad inheritance usage code.

上级 f8bd805b
......@@ -68,6 +68,8 @@ THREE.BinaryLoader.prototype.loadAjaxJSON = function ( context, url, callback, t
THREE.BinaryLoader.prototype.loadAjaxBuffers = function ( json, callback, binaryPath, texturePath, callbackProgress ) {
var scope = this;
var xhr = new XMLHttpRequest(),
url = binaryPath + json.buffers;
......@@ -96,7 +98,7 @@ THREE.BinaryLoader.prototype.loadAjaxBuffers = function ( json, callback, binary
}
THREE.BinaryLoader.prototype.createBinModel( buffer, callback, texturePath, json.materials );
scope.createBinModel( buffer, callback, texturePath, json.materials );
}, false );
......
......@@ -57,7 +57,7 @@ THREE.CTMLoader.prototype.loadParts = function( url, callback, parameters ) {
for ( var i = 0; i < jsonObject.materials.length; i ++ ) {
materials[ i ] = THREE.Loader.prototype.createMaterial( jsonObject.materials[ i ], basePath );
materials[ i ] = scope.createMaterial( jsonObject.materials[ i ], basePath );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册