mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Update Mobject.make_movable to recurse over family
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user