Skip to content

Commit ed1fc4d

Browse files
committed
Add bounding box as exceptional key to point_cloud mobject
1 parent 3822b00 commit ed1fc4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manimlib/mobject/types/point_cloud_mobject.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def filter_out(self, condition):
6161
for mob in self.family_members_with_points():
6262
to_keep = ~np.apply_along_axis(condition, 1, mob.get_points())
6363
for key in mob.data:
64+
if key == "bounding_box":
65+
continue
6466
mob.data[key] = mob.data[key][to_keep]
6567
return self
6668

0 commit comments

Comments
 (0)