Accept list of Vect3 as an input to Mobject.set_points

This commit is contained in:
Grant Sanderson 2023-02-01 13:02:56 -08:00
parent 3c0d682efc
commit d0c6d4d386

View file

@ -202,7 +202,7 @@ class Mobject(object):
return self
@affects_data
def set_points(self, points: Vect3Array) -> Self:
def set_points(self, points: Vect3Array | list[Vect3]) -> Self:
self.resize_points(len(points), resize_func=resize_preserving_order)
self.data["point"][:] = points
return self