mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Added Mobject.match_updaters
This commit is contained in:
parent
a1878308e0
commit
fd0030085b
1 changed files with 6 additions and 0 deletions
|
@ -200,6 +200,12 @@ class Mobject(Container):
|
|||
submob.clear_updaters()
|
||||
return self
|
||||
|
||||
def match_updaters(self, mobject):
|
||||
self.clear_updaters()
|
||||
for updater in mobject.get_updaters():
|
||||
self.add_updater(updater)
|
||||
return self
|
||||
|
||||
def suspend_updating(self, recursive=True):
|
||||
self.updating_suspended = True
|
||||
if recursive:
|
||||
|
|
Loading…
Add table
Reference in a new issue