mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: keyframe removal state
This commit is contained in:
@@ -19,6 +19,7 @@ import type {
|
|||||||
AnimationPath,
|
AnimationPath,
|
||||||
AnimationInterpolation,
|
AnimationInterpolation,
|
||||||
AnimationValue,
|
AnimationValue,
|
||||||
|
AnimationValueForPath,
|
||||||
ScalarCurveKeyframePatch,
|
ScalarCurveKeyframePatch,
|
||||||
} from "@/lib/animation/types";
|
} from "@/lib/animation/types";
|
||||||
import {
|
import {
|
||||||
@@ -506,7 +507,9 @@ export class TimelineManager {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const target = resolveAnimationTarget({ element, path: propertyPath });
|
const target = resolveAnimationTarget({ element, path: propertyPath });
|
||||||
const baseValue = target?.getBaseValue() ?? null;
|
const baseValue =
|
||||||
|
(target?.getBaseValue() as AnimationValueForPath<AnimationPath> | null) ??
|
||||||
|
null;
|
||||||
if (baseValue === null) {
|
if (baseValue === null) {
|
||||||
valueAtPlayheadMap.set(key, null);
|
valueAtPlayheadMap.set(key, null);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user