修复立体贴图载入bug。

This commit is contained in:
liteng 2018-08-26 21:57:24 +08:00
parent 1b1906c208
commit e8db72e145

View File

@ -48,10 +48,10 @@ CubeTextureSerializer.prototype.fromJSON = function (json, parent) {
img.onload = () => {
resolve(img);
};
obj.image.push(img);
});
});
Promise.all(promises).then(n => {
Promise.all(promises).then(imgs => {
obj.image = imgs;
obj.needsUpdate = true;
});
}