Add scene lighting effect check and summary in ProjectSequencesPanel.tsx

This commit is contained in:
2026-04-15 07:57:10 +02:00
parent 1fd6e298aa
commit 6f41e49c30

View File

@@ -313,6 +313,8 @@ export function ProjectSequencesPanel({
const targetKey = getControlTargetRefKey(effect.effect.target);
const targetOption =
getProjectScheduleTargetOptionByKey(targetOptions, targetKey);
const isSceneLightingEffect =
targetOption?.target.kind === "scene";
const effectOptions =
targetOption === null
? []
@@ -349,6 +351,12 @@ export function ProjectSequencesPanel({
preserved, but the current editor can only edit targets
and effects exposed through the existing control catalog.
</div>
) : (
<>
{isSceneLightingEffect ? (
<div className="material-summary">
This effect applies to the active scene lighting.
</div>
) : (
<>
<div className="vector-inputs vector-inputs--two">
@@ -393,6 +401,8 @@ export function ProjectSequencesPanel({
))}
</select>
</label>
</>
)}
{effectOptions.find((option) => option.id === effectOptionId)
?.valueKind === "number" ? (