mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Have set_animating_status recurse over family
This commit is contained in:
@ -673,20 +673,19 @@ class Mobject(object):
|
||||
def is_changing(self) -> bool:
|
||||
return self._is_animating or self.has_updaters or self._is_movable
|
||||
|
||||
def set_animating_status(self, is_animating: bool) -> None:
|
||||
self._is_animating = is_animating
|
||||
|
||||
def set_movable_status(self, is_movable: bool) -> None:
|
||||
self._is_movable = is_movable
|
||||
|
||||
def is_movable(self) -> bool:
|
||||
return self._is_movable
|
||||
def set_animating_status(self, is_animating: bool, recurse: bool = True) -> None:
|
||||
for mob in self.get_family(recurse):
|
||||
mob._is_animating = is_animating
|
||||
return self
|
||||
|
||||
def make_movable(self, value: bool = True, recurse: bool = True) -> None:
|
||||
for mob in self.get_family(recurse):
|
||||
mob._is_movable = value
|
||||
return self
|
||||
|
||||
def is_movable(self) -> bool:
|
||||
return self._is_movable
|
||||
|
||||
# Transforming operations
|
||||
|
||||
def shift(self, vector: np.ndarray):
|
||||
|
Reference in New Issue
Block a user