Handle smoothPath in readControlEffect

This commit is contained in:
2026-04-15 11:13:07 +02:00
parent 58a9f1eef6
commit 285e70c9ae

View File

@@ -3268,6 +3268,10 @@ function readControlEffect(value: unknown, label: string): ControlEffect {
pathId: expectString(value.pathId, `${label}.pathId`),
speed: expectPositiveFiniteNumber(value.speed, `${label}.speed`),
loop: expectBoolean(value.loop, `${label}.loop`),
smoothPath:
value.smoothPath === undefined
? true
: expectBoolean(value.smoothPath, `${label}.smoothPath`),
progressMode
});
}