mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Accept list of Vect3 as an input to Mobject.set_points
This commit is contained in:
parent
3c0d682efc
commit
d0c6d4d386
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue