Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Show inherited Scene Look value

Bittia1029d335e1f
diff --git a/src/components/workspace/GeneratorView.test.tsx b/src/components/workspace/GeneratorView.test.tsx
index ecfb493..087cb2f 100644
--- a/src/components/workspace/GeneratorView.test.tsx
+++ b/src/components/workspace/GeneratorView.test.tsx
@@ -621,7 +621,7 @@ describe("Generator scene controls", () => {
defaultLook: "watercolor", aspectRatio: "9:16", resolution: "544p" }];
const state = setup(initial);
expect(screen.getByText("Using Video Look: Watercolor.")).toBeInTheDocument();
- expect(screen.getByRole("combobox", { name: "The look of this scene" })).toHaveTextContent("Video default");
+ expect(screen.getByRole("combobox", { name: "The look of this scene" })).toHaveTextContent("Watercolor");
act(() => saveDebugOptionsEnabled(true));
fireEvent.click(screen.getByRole("button", { name: "Debug prompt" }));
expect(screen.getByRole("dialog", { name: "Debug prompt" })).toHaveTextContent("Watercolor");
@@ -636,7 +636,7 @@ describe("Generator scene controls", () => {
initial.settings.defaultLook = "watercolor";
const state = setup(initial);
const selector = screen.getByRole("combobox", { name: "The look of this scene" });
- expect(comboValue(selector)).toBe("");
+ expect(comboValue(selector)).toBe("watercolor");
expect(screen.getByText("Using project Look: Watercolor.")).toBeInTheDocument();
if (sceneLook) chooseOption(selector, expected);
fireEvent.click(within(screen.getByRole("region", { name: "First scene" })).getByRole("button", { name: "Generate" }));
diff --git a/src/components/workspace/SceneEditor.tsx b/src/components/workspace/SceneEditor.tsx
index 01ab3d0..fd0c8ff 100644
--- a/src/components/workspace/SceneEditor.tsx
+++ b/src/components/workspace/SceneEditor.tsx
@@ -479,14 +479,14 @@ export function SceneInspector({ job, shots, references, folderPath = "", scenes
{!animate && <PropRow label="Look" htmlFor={`${id}-look`}>
<ComboBox
id={`${id}-look`}
- value={chosen}
+ value={chosen || defaultLook || ""}
disabled={disabled}
aria-label="The look of this scene"
- options={[{ value: "", label: defaultLookSource === "Video" ? "Video default" : "None" }, ...look.options.map((option) => ({ value: option.id, label: option.label }))]}
+ options={[...(!defaultLook ? [{ value: "", label: "None" }] : []), ...look.options.map((option) => ({ value: option.id, label: option.label }))]}
onChange={(value) => {
onShots(shots.map((shot, index) => {
const settings = { ...(shot.settings ?? {}) };
- if (index === 0 && value) settings[look.id] = [value];
+ if (index === 0 && value && value !== defaultLook) settings[look.id] = [value];
else delete settings[look.id];
return { ...shot, settings: normalizeShotTagSelection(settings) };
}));