mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Accept list of Vect3 as an input to Mobject.set_points
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user