diff --git a/src/app/App.tsx b/src/app/App.tsx index ae91d398..ba54ea00 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -5297,6 +5297,33 @@ export function App({ store, initialStatusMessage }: AppProps) { ); }; + const updateProjectSequenceControlStepPathSmooth = ( + sequenceId: string, + stepIndex: number, + smoothPath: boolean + ) => { + updateProjectSequenceStep( + sequenceId, + stepIndex, + "Set project sequence actor path smoothing", + smoothPath + ? "Sequence actor path now uses smoothing." + : "Sequence actor path now follows authored corners directly.", + (step) => { + if ( + step.type !== "controlEffect" || + step.effect.type !== "followActorPath" + ) { + throw new Error( + "The current sequence control step does not expose actor path smoothing." + ); + } + + step.effect.smoothPath = smoothPath; + } + ); + }; + const updateProjectSequenceNpcTalkStepNpcEntityId = ( sequenceId: string, stepIndex: number,