From 9326113dfdca51a2123e90ed966cdcca51ec9d2e Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Mon, 27 Aug 2018 20:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=AB=8B=E4=BD=93=E8=B4=B4?= =?UTF-8?q?=E5=9B=BEbug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/src/editor/sidebar/SettingPanel.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ShadowEditor.Web/src/editor/sidebar/SettingPanel.js b/ShadowEditor.Web/src/editor/sidebar/SettingPanel.js index eb5bc9be..4a5ae343 100644 --- a/ShadowEditor.Web/src/editor/sidebar/SettingPanel.js +++ b/ShadowEditor.Web/src/editor/sidebar/SettingPanel.js @@ -361,6 +361,13 @@ SettingPanel.prototype.onSelectTab = function (tabName) { backgroundPosZRow.dom.style.display = scene.background instanceof THREE.CubeTexture ? '' : 'none'; backgroundNegZRow.dom.style.display = scene.background instanceof THREE.CubeTexture ? '' : 'none'; + backgroundPosX.setValue(scene.background instanceof THREE.CubeTexture ? new THREE.Texture(scene.background.image[0]) : null); + backgroundNegX.setValue(scene.background instanceof THREE.CubeTexture ? new THREE.Texture(scene.background.image[1]) : null); + backgroundPosY.setValue(scene.background instanceof THREE.CubeTexture ? new THREE.Texture(scene.background.image[2]) : null); + backgroundNegY.setValue(scene.background instanceof THREE.CubeTexture ? new THREE.Texture(scene.background.image[3]) : null); + backgroundPosZ.setValue(scene.background instanceof THREE.CubeTexture ? new THREE.Texture(scene.background.image[4]) : null); + backgroundNegZ.setValue(scene.background instanceof THREE.CubeTexture ? new THREE.Texture(scene.background.image[5]) : null); + // 雾效 var fogColorRow = UI.get('fogColorRow', this.id); var fogNearRow = UI.get('fogNearRow', this.id);