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

ObjectLoader: Fixed onLoad. See fcf54cd2.

上级 092aa772
......@@ -48,11 +48,16 @@ THREE.ObjectLoader.prototype = {
var geometries = this.parseGeometries( json.geometries );
var images = this.parseImages( json.images, onLoad );
var images = this.parseImages( json.images, function () {
if ( onLoad !== undefined ) onLoad( object );
} );
var textures = this.parseTextures( json.textures, images );
var materials = this.parseMaterials( json.materials, textures );
var object = this.parseObject( json.object, geometries, materials );
return this.parseObject( json.object, geometries, materials );
return object;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册