From 190b9e46037db695ab6e9f9c08e66d1a71aafe3c Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 12 Jan 2023 21:24:34 -0800 Subject: [PATCH] Tiny tweak --- manimlib/mobject/types/vectorized_mobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 81eb5849..8351d905 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -477,7 +477,7 @@ class VMobject(Mobject): quadratic_approx = get_quadratic_approximation_of_cubic( last, handle1, handle2, anchor ) - if self.consider_points_equal(quadratic_approx[1], self.get_last_point()): + if self.consider_points_equal(quadratic_approx[1], last): # This is to prevent subpaths from accidentally being marked closed quadratic_approx[1] = midpoint(*quadratic_approx[1:3]) self.append_points(quadratic_approx[1:])