MCPcopy
hub / github.com/midrender/revideo / endScene

Function endScene

packages/core/src/utils/useScene.ts:20–24  ·  view source on GitHub ↗
(scene: Scene)

Source from the content-addressed store, hash-verified

18}
19
20export function endScene(scene: Scene) {
21 if (SceneStack.pop() !== scene) {
22 throw new Error('startScene/endScene were called out of order.');
23 }
24}
25
26export function useLogger() {
27 return SceneStack.at(-1)?.logger ?? console;

Callers 2

mockScene2DFunction · 0.90
executeFunction · 0.90

Calls

no outgoing calls

Tested by 1

mockScene2DFunction · 0.72