Merge pull request #1043 from vbasky/fix/1000-sampleimage-footage

# Conflicts:
#	crates/script/src/tests.rs
This commit is contained in:
Brandon Thomas
2026-10-13 04:28:50 -04:00
2 changed files with 39 additions and 0 deletions
+3
View File
@@ -479,6 +479,9 @@ fn value(s: &Session, a: &J) -> R {
} else {
let mut ctx = EvalCtx::new(&s.project, cid, c, t);
ctx.expr = s.expr.as_deref();
// Sample expressions (`sampleImage`) read footage through the session's source; without
// it footage layers sample as transparent (#1000).
ctx.footage = Some(s.footage.as_ref());
ctx.value(l, p)
};
Ok(js_value(c, &v))