mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 14:37:47 +00:00
Allow for adding null subpath
This commit is contained in:
parent
6d4782506a
commit
9696827213
1 changed files with 1 additions and 1 deletions
|
|
@ -658,7 +658,7 @@ class VMobject(Mobject):
|
|||
return self
|
||||
|
||||
def add_subpath(self, points: Vect3Array):
|
||||
assert(len(points) % 2 == 1)
|
||||
assert(len(points) % 2 == 1 or len(points) == 0)
|
||||
if not self.has_points():
|
||||
self.set_points(points)
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue