mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Make sure null parametric curve has at least one point
This commit is contained in:
parent
2798d15591
commit
2488b9e866
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue