From e6c0b3d2d9ccdcc9c49af64cc51594f9e20398d2 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 16 Jun 2024 20:50:42 +0100 Subject: [PATCH] Fix interpolation --- src/editor/utils/interpolate.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/editor/utils/interpolate.py b/src/editor/utils/interpolate.py index fd9f31e..1502325 100644 --- a/src/editor/utils/interpolate.py +++ b/src/editor/utils/interpolate.py @@ -9,8 +9,6 @@ INTERPOLATION_TYPE = Literal["cubic", "linear"] def interpolate( control_points: List[float], t: float, type: INTERPOLATION_TYPE ) -> float: - control_points = sorted(control_points) - if type == "cubic": x = np.linspace(0, 1, len(control_points)) cs = CubicSpline(x, control_points)