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