mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修复立体贴图载入bug。
This commit is contained in:
parent
1b1906c208
commit
e8db72e145
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user