mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Accept list of Vect3 as an input to Mobject.set_points
This commit is contained in:
parent
979589a156
commit
40bcb7e0f3
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