Make sure null parametric curve has at least one point

This commit is contained in:
Grant Sanderson 2022-01-18 10:03:45 -08:00
parent 2798d15591
commit 2488b9e866

View file

@ -42,6 +42,8 @@ class ParametricCurve(VMobject):
self.add_points_as_corners(points[1:])
if self.use_smoothing:
self.make_approximately_smooth()
if not self.has_points():
self.set_points([self.t_func(t_min)])
return self