mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
More direct check for family_members_with_points
This commit is contained in:
parent
bd89056c8e
commit
63dbe3b23f
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ class Mobject(object):
|
|||
return [self]
|
||||
|
||||
def family_members_with_points(self) -> list[Self]:
|
||||
return [m for m in self.get_family() if m.has_points()]
|
||||
return [m for m in self.family if len(m.data) > 0]
|
||||
|
||||
def get_ancestors(self, extended: bool = False) -> list[Mobject]:
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue