From eb08a75e988e69376ad0519e985234e6b296c424 Mon Sep 17 00:00:00 2001 From: ycw Date: Wed, 1 May 2024 21:05:35 +0800 Subject: [PATCH] clean --- editor/js/Sidebar.Scene.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/js/Sidebar.Scene.js b/editor/js/Sidebar.Scene.js index a91053ea418982..4cd3f0ef779bee 100644 --- a/editor/js/Sidebar.Scene.js +++ b/editor/js/Sidebar.Scene.js @@ -419,6 +419,8 @@ function SidebarScene( editor ) { } else { backgroundType.setValue( 'None' ); + backgroundTexture.setValue( null ); + backgroundEquirectangularTexture.setValue( null ); } @@ -438,6 +440,7 @@ function SidebarScene( editor ) { } else { environmentType.setValue( 'None' ); + environmentEquirectangularTexture.setValue( null ); }