From e8db72e145e5f83dd650c4fc6aba47ba6d0883cc Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Sun, 26 Aug 2018 21:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=8B=E4=BD=93=E8=B4=B4?= =?UTF-8?q?=E5=9B=BE=E8=BD=BD=E5=85=A5bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/serialization/texture/CubeTextureSerializer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }); }