Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added Mobject.match_updaters

Grant Sandersonfd0030085b1c
diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py
index ca87344c5..4b03f490d 100644
--- a/manimlib/mobject/mobject.py
+++ b/manimlib/mobject/mobject.py
@@ -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: