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 979589a156
commit 40bcb7e0f3

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