Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Cinema Studio: a scene's menu opens it instead of loading an empty prompt, demo prices say Demo

Claude37348ddc4218
diff --git a/src/components/cinema/cinema-feed.tsx b/src/components/cinema/cinema-feed.tsx
index edd7eecd..2cb20dc4 100644
--- a/src/components/cinema/cinema-feed.tsx
+++ b/src/components/cinema/cinema-feed.tsx
@@ -198,14 +198,16 @@ function TileMenu({ u, folders, projectId, handlers, onDelete }: { u: Unit; fold
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-56" onClick={(e) => e.stopPropagation()}>
- {u.scene && (
+ {/* A scene has no prompt to load: it opens in the 3D viewer instead. */}
+ {u.scene ? (
<DropdownMenuItem onClick={() => handlers.onOpenScene(u.g)}>
<Box /> Open 3D scene
</DropdownMenuItem>
+ ) : (
+ <DropdownMenuItem onClick={() => handlers.onLoad(u.g)}>
+ <RotateCcw /> Load into prompt bar
+ </DropdownMenuItem>
)}
- <DropdownMenuItem onClick={() => handlers.onLoad(u.g)}>
- <RotateCcw /> Load into prompt bar
- </DropdownMenuItem>
{o?.kind === "image" && !u.scene && (
<>
<DropdownMenuItem onClick={() => handlers.onCreateScene(u.g, o.url)}>
diff --git a/src/components/cinema/scene-actions.tsx b/src/components/cinema/scene-actions.tsx
index 7b88e442..fd388a1f 100644
--- a/src/components/cinema/scene-actions.tsx
+++ b/src/components/cinema/scene-actions.tsx
@@ -41,10 +41,10 @@ export function sceneTake(g: CinemaGeneration): SceneTake | null {
return { generation: g, still, source, aspect: ar && IMAGE_ASPECTS.includes(ar) ? ar : "16:9" };
}
-/** What a plan costs here: "Demo" when no provider of its model is connected and demo mode answers instead. */
+/** What a plan costs here: "Demo" when demo mode is on, or answers because no provider of its model is connected. */
export function usePlanPrice(plan: CinemaPlan): { cost: number | null; label: string; demo: boolean } {
const status = useStatus().data;
- const demo = !!status && status.demoMode !== "off" && !plan.model.routes.some((r) => status.providers[r.provider]?.configured);
+ const demo = !!status && (status.demoMode === "on" || (status.demoMode !== "off" && !plan.model.routes.some((r) => status.providers[r.provider]?.configured)));
const cost = demo ? 0 : plan.costUsd;
return { cost, demo, label: demo ? "Demo · free" : cost === 0 ? "Free" : cost != null ? `≈ ${formatCost(cost)}` : "Price unknown" };
}