Add scene lighting effect check and summary in ProjectSequencesPanel.tsx
This commit is contained in:
@@ -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" ? (
|
||||
|
||||
Reference in New Issue
Block a user