Skip to content

Commit 887780d

Browse files
committed
fix(studio): drop the property-group gate in the AST cache load
Carries the gsapAnimations/keyframeCache symmetry fix into the extracted AST loader: an ungrouped tween now lands in both stores, so the collapsed row and the expanded lanes agree on what a clip animates.
1 parent a7cd095 commit 887780d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/studio/src/hooks/keyframeCacheAstLoad.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ export async function populateKeyframeCacheFromAst(
137137
// group / descendant selectors, not just `#id`).
138138
for (const id of resolveSelectorElementIds(anim.targetSelector, doc)) {
139139
// kfData is already resolved (real keyframes OR a synthesized flat
140-
// tween), so a grouped flat tween joins the store like a keyframed one.
141-
if (anim.propertyGroup) {
142-
sourceByElement.set(id, [...(sourceByElement.get(id) ?? []), anim]);
143-
}
140+
// tween), so a flat tween joins the store like a keyframed one. No
141+
// property-group filter: this map must cover every tween the cache
142+
// below records, or expanded lanes have nothing to render.
143+
sourceByElement.set(id, [...(sourceByElement.get(id) ?? []), anim]);
144144
const { elStart, elDuration } = resolveClipTimingBasis(id, sf, elements, domClipChildren);
145145
const clipKeyframes = kfData.keyframes.map((kf) => {
146146
const absTime = toAbsoluteTime(tweenPos, tweenDur, kf.percentage);

0 commit comments

Comments
 (0)