mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修复设置面板不显示立体贴图bug。
This commit is contained in:
parent
1de8ff1b82
commit
9326113dfd
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user