mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-06 10:31:05 +00:00
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:
1 parent
325c029d06
commit
dc28883993
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user