auto-git:

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

View File

@@ -2719,6 +2719,17 @@ export function App({ store, initialStatusMessage }: AppProps) {
] = useState( ] = useState(
String(editorState.document.world.timeOfDay.dawn.lightIntensityFactor) String(editorState.document.world.timeOfDay.dawn.lightIntensityFactor)
); );
const [
worldDawnBackgroundEnvironmentIntensityDraft,
setWorldDawnBackgroundEnvironmentIntensityDraft
] = useState(
editorState.document.world.timeOfDay.dawn.background.mode === "image"
? String(
editorState.document.world.timeOfDay.dawn.background
.environmentIntensity
)
: String(DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY)
);
const [ const [
worldDuskAmbientIntensityFactorDraft, worldDuskAmbientIntensityFactorDraft,
setWorldDuskAmbientIntensityFactorDraft setWorldDuskAmbientIntensityFactorDraft
@@ -2731,6 +2742,17 @@ export function App({ store, initialStatusMessage }: AppProps) {
] = useState( ] = useState(
String(editorState.document.world.timeOfDay.dusk.lightIntensityFactor) String(editorState.document.world.timeOfDay.dusk.lightIntensityFactor)
); );
const [
worldDuskBackgroundEnvironmentIntensityDraft,
setWorldDuskBackgroundEnvironmentIntensityDraft
] = useState(
editorState.document.world.timeOfDay.dusk.background.mode === "image"
? String(
editorState.document.world.timeOfDay.dusk.background
.environmentIntensity
)
: String(DEFAULT_TIME_PHASE_IMAGE_ENVIRONMENT_INTENSITY)
);
const [ const [
worldNightAmbientIntensityFactorDraft, worldNightAmbientIntensityFactorDraft,
setWorldNightAmbientIntensityFactorDraft setWorldNightAmbientIntensityFactorDraft
@@ -2752,7 +2774,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
editorState.document.world.timeOfDay.night.background editorState.document.world.timeOfDay.night.background
.environmentIntensity .environmentIntensity
) )
: "0.5" : String(DEFAULT_NIGHT_IMAGE_ENVIRONMENT_INTENSITY)
); );
const [ const [
backgroundEnvironmentIntensityDraft, backgroundEnvironmentIntensityDraft,