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]);