mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Update Mobject.make_movable to recurse over family
This commit is contained in:
parent
f636199d9a
commit
4839037503
1 changed files with 4 additions and 2 deletions
|
@ -682,8 +682,10 @@ class Mobject(object):
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue