diff --git a/ShadowEditor.Web/src/serialization/texture/CubeTextureSerializer.js b/ShadowEditor.Web/src/serialization/texture/CubeTextureSerializer.js index 16ab2df1..399b5762 100644 --- a/ShadowEditor.Web/src/serialization/texture/CubeTextureSerializer.js +++ b/ShadowEditor.Web/src/serialization/texture/CubeTextureSerializer.js @@ -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; }); }