From f4f318f5c033d986d7e51525f6218dbc2c6736b5 Mon Sep 17 00:00:00 2001 From: tylerjenningsw Date: Sat, 31 Oct 2026 21:12:15 -0400 Subject: [PATCH] Expressions: bare source reads the current layer's source (#2671) --- crates/expr/src/prelude.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/expr/src/prelude.js b/crates/expr/src/prelude.js index 3196ce5a3..c6fcbab03 100644 --- a/crates/expr/src/prelude.js +++ b/crates/expr/src/prelude.js @@ -1144,7 +1144,7 @@ function __global(name, get) { __global('thisComp', function () { return __S.comp || (__S.comp = new Comp(__S.c)); }); __global('thisLayer', function () { return __S.layer || (__S.layer = __layer(__S.c, __S.l)); }); __global('thisProperty', function () { return __S.prop || (__S.prop = __mkProp(__S.c, __S.l, __S.path)); }); -['name', 'index', 'inPoint', 'outPoint', 'startTime', 'width', 'height', 'hasParent', 'parent', 'hasVideo', 'enabled', 'active', +['name', 'index', 'inPoint', 'outPoint', 'startTime', 'width', 'height', 'hasParent', 'parent', 'hasVideo', 'enabled', 'active', 'source', 'transform', 'position', 'scale', 'rotation', 'opacity', 'anchorPoint', 'text', 'marker'].forEach(function (k) { __global(k, function () { return thisLayer[k]; }); });