diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-14 18:32:07 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-14 18:32:07 +0200 |
| commit | 5e6c26f3c1c4aa2c816049a492bc73a5f2e98ade (patch) | |
| tree | 01ac7bbf77ba5dbe5d19756a358f754118c86d35 /apps/web/src/core | |
| parent | 520c0b3264fffd405d780862ba5d4ac1038455c9 (diff) | |
| download | opencut-5e6c26f3c1c4aa2c816049a492bc73a5f2e98ade.tar.gz | |
fix: keyframe removal state
Diffstat (limited to 'apps/web/src/core')
| -rw-r--r-- | apps/web/src/core/managers/timeline-manager.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/web/src/core/managers/timeline-manager.ts b/apps/web/src/core/managers/timeline-manager.ts index 4927a0e2..70cd0439 100644 --- a/apps/web/src/core/managers/timeline-manager.ts +++ b/apps/web/src/core/managers/timeline-manager.ts @@ -19,6 +19,7 @@ import type { AnimationPath, AnimationInterpolation, AnimationValue, + AnimationValueForPath, ScalarCurveKeyframePatch, } from "@/lib/animation/types"; import { @@ -506,7 +507,9 @@ export class TimelineManager { }); const target = resolveAnimationTarget({ element, path: propertyPath }); - const baseValue = target?.getBaseValue() ?? null; + const baseValue = + (target?.getBaseValue() as AnimationValueForPath<AnimationPath> | null) ?? + null; if (baseValue === null) { valueAtPlayheadMap.set(key, null); continue; |
