From 401cc35743aafc4c8bdfb8055501650390bde88b Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 29 Apr 2026 10:37:39 +0200 Subject: refactor: animate params over time --- .../panels/properties/hooks/use-keyframed-param-property.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/web/src/components/editor/panels/properties') 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, -- cgit v1.3.1