From 752fe84f6385f5ced6b2a4d2f56588545dd722a7 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 31 Mar 2026 23:15:17 +0200 Subject: [PATCH] Update background environment intensity effect in App.tsx --- src/app/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 5dea486f..94673398 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -844,6 +844,12 @@ export function App({ store, initialStatusMessage }: AppProps) { setAmbientLightIntensityDraft(String(editorState.document.world.ambientLight.intensity)); }, [editorState.document.world.ambientLight.intensity]); + useEffect(() => { + if (editorState.document.world.background.mode === "image") { + setBackgroundEnvironmentIntensityDraft(String(editorState.document.world.background.environmentIntensity)); + } + }, [editorState.document.world.background]); + useEffect(() => { setSunLightIntensityDraft(String(editorState.document.world.sunLight.intensity)); }, [editorState.document.world.sunLight.intensity]);