Merge pull request #1992 from 3b1b/bug-fix

Fix for index -3 error
This commit is contained in:
Grant Sanderson 2023-02-08 10:40:40 -08:00 committed by GitHub
commit 41f0239e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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])