From 3b2904b4c7b27e11963df1a6def6d06f49670a30 Mon Sep 17 00:00:00 2001 From: Dishant Varshney <41651498+Varniex@users.noreply.github.com> Date: Sun, 2 Apr 2023 03:16:09 +0530 Subject: [PATCH] Correction of indices --- manimlib/utils/bezier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/utils/bezier.py b/manimlib/utils/bezier.py index dc314a9f..ba993ece 100644 --- a/manimlib/utils/bezier.py +++ b/manimlib/utils/bezier.py @@ -213,7 +213,7 @@ def smooth_quadratic_path(anchors: Vect3Array) -> Vect3Array: if len(anchors) < 2: return anchors elif len(anchors) == 2: - return np.array([anchors[0], anchors.mean(1), anchors[2]]) + return np.array([anchors[0], anchors.mean(0), anchors[1]]) is_flat = (anchors[:, 2] == 0).all() if not is_flat: