auto-git:

[change] src/app/App.tsx
This commit is contained in:
2026-04-22 12:31:11 +02:00
parent 19b60cd5a7
commit 4d6a32eaf4

View File

@@ -3652,12 +3652,22 @@ export function App({ store, initialStatusMessage }: AppProps) {
setWorldDawnLightIntensityFactorDraft( setWorldDawnLightIntensityFactorDraft(
String(worldTimeOfDay.dawn.lightIntensityFactor) String(worldTimeOfDay.dawn.lightIntensityFactor)
); );
setWorldDawnBackgroundEnvironmentIntensityDraft(
worldTimeOfDay.dawn.background.mode === "image"
? String(worldTimeOfDay.dawn.background.environmentIntensity)
: String(DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY)
);
setWorldDuskAmbientIntensityFactorDraft( setWorldDuskAmbientIntensityFactorDraft(
String(worldTimeOfDay.dusk.ambientIntensityFactor) String(worldTimeOfDay.dusk.ambientIntensityFactor)
); );
setWorldDuskLightIntensityFactorDraft( setWorldDuskLightIntensityFactorDraft(
String(worldTimeOfDay.dusk.lightIntensityFactor) String(worldTimeOfDay.dusk.lightIntensityFactor)
); );
setWorldDuskBackgroundEnvironmentIntensityDraft(
worldTimeOfDay.dusk.background.mode === "image"
? String(worldTimeOfDay.dusk.background.environmentIntensity)
: String(DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY)
);
setWorldNightAmbientIntensityFactorDraft( setWorldNightAmbientIntensityFactorDraft(
String(worldTimeOfDay.night.ambientIntensityFactor) String(worldTimeOfDay.night.ambientIntensityFactor)
); );
@@ -3667,7 +3677,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
setWorldNightBackgroundEnvironmentIntensityDraft( setWorldNightBackgroundEnvironmentIntensityDraft(
worldTimeOfDay.night.background.mode === "image" worldTimeOfDay.night.background.mode === "image"
? String(worldTimeOfDay.night.background.environmentIntensity) ? String(worldTimeOfDay.night.background.environmentIntensity)
: "0.5" : String(DEFAULT_NIGHT_IMAGE_ENVIRONMENT_INTENSITY)
); );
}, [editorState.document.world.timeOfDay]); }, [editorState.document.world.timeOfDay]);