Skip to content

Commit

Permalink
Fix for 3b1b#1991
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Feb 8, 2023
1 parent 66b78d0 commit 1844f7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manimlib/mobject/types/vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,9 @@ def add_smooth_cubic_curve_to(self, handle: Vect3, point: Vect3) -> Self:

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

Expand Down

0 comments on commit 1844f7f

Please sign in to comment.