Skip to content

Commit

Permalink
Update Mobject.make_movable to recurse over family
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Apr 21, 2022
1 parent f636199 commit 4839037
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manimlib/mobject/mobject.py
Expand Up @@ -682,8 +682,10 @@ def set_movable_status(self, is_movable: bool) -> None:
def is_movable(self) -> bool:
return self._is_movable

def make_movable(self) -> None:
self._is_movable = True
def make_movable(self, value: bool = True, recurse: bool = True) -> None:
for mob in self.get_family(recurse):
mob._is_movable = value
return self

# Transforming operations

Expand Down

0 comments on commit 4839037

Please sign in to comment.