Allow for adding null subpath

This commit is contained in:
Grant Sanderson 2023-01-26 16:50:22 -08:00
parent 6d4782506a
commit 9696827213

View file

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