diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-29 10:37:39 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-05-02 03:27:23 +0200 |
| commit | 401cc35743aafc4c8bdfb8055501650390bde88b (patch) | |
| tree | 98385fb2f252ff6bb227a844d96b664a8fe87835 /apps/web/src/components/editor/panels/properties/hooks/use-keyframed-param-property.ts | |
| parent | b8d08df244b97b1d3131cb2d076166838189eeb0 (diff) | |
| download | opencut-401cc35743aafc4c8bdfb8055501650390bde88b.tar.gz | |
refactor: animate params over time
Diffstat (limited to 'apps/web/src/components/editor/panels/properties/hooks/use-keyframed-param-property.ts')
| -rw-r--r-- | apps/web/src/components/editor/panels/properties/hooks/use-keyframed-param-property.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-param-property.ts b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-param-property.ts index dc1ad9ca..0a0f7db0 100644 --- a/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-param-property.ts +++ b/apps/web/src/components/editor/panels/properties/hooks/use-keyframed-param-property.ts @@ -13,8 +13,7 @@ import type { } from "@/animation/types"; import { coerceParamValue, - getParamDefaultInterpolation, - getParamValueKind, + getParamChannelLayout, type ParamDefinition, } from "@/params"; import type { TimelineElement } from "@/timeline"; @@ -86,10 +85,7 @@ export function useKeyframedParamProperty({ propertyPath: resolvedPropertyPath, time: localTime, value, - kind: getParamValueKind({ param }), - defaultInterpolation: getParamDefaultInterpolation({ - param, - }), + channelLayout: getParamChannelLayout({ param }), coerceValue: ({ value: nextValue }) => coerceParamValue({ param, |
