Tests: build the viewer tests' EvalCtx from the session's active comp

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bar BorerandClaude Opus 5.5 committed 2026-11-03 05:35:02 +02:00
1 parent 325c029d06
commit dc28883993
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ fn parented_session(parent: serde_json::Value) -> (effectcraft_engine::Session,
fn with_ctx<T>(s: &effectcraft_engine::Session, f: impl FnOnce(&EvalCtx) -> T) -> T {
let comp = s.active_comp().unwrap();
f(&EvalCtx::new(&s.project, comp.id, comp, Tick::ZERO))
f(&EvalCtx::new(&s.project, s.active_comp_id().unwrap(), comp, Tick::ZERO))
}
/// #2870: the pivot of a child follows its parent, through the camera for a 3D layer