Skip to content

Commit

Permalink
Temporary fix for PMobject array resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Oct 1, 2021
1 parent d45ea28 commit b543cc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manimlib/mobject/types/point_cloud_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class PMobject(Mobject):
def resize_points(self, size, resize_func=resize_array):
# TODO
for key in self.data:
if key == "bounding_box":
continue
if len(self.data[key]) != size:
self.data[key] = resize_array(self.data[key], size)
return self
Expand Down

0 comments on commit b543cc0

Please sign in to comment.