Add function to update project sequence control step path smoothing in App.tsx

This commit is contained in:
2026-04-15 11:13:38 +02:00
parent 1332b488cf
commit 2a53aa01f4

View File

@@ -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,