From 1844f7fd64157b2638b49704658506c2c0f9759a Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 8 Feb 2023 10:39:07 -0800 Subject: [PATCH] Fix for https://github.com/3b1b/manim/issues/1991 --- manimlib/mobject/types/vectorized_mobject.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 8c43b80f..8d60f019 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -544,7 +544,9 @@ class VMobject(Mobject): def has_new_path_started(self) -> bool: points = self.get_points() - if len(points) == 1: + if len(points) == 0: + return False + elif len(points) == 1: return True return self.consider_points_equal(points[-3], points[-2])