From fd0030085b1c437f35d2e16125a7eb1f72fcbd31 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 10 Apr 2019 14:57:15 -0700 Subject: [PATCH] Added Mobject.match_updaters --- manimlib/mobject/mobject.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index ca87344c..4b03f490 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: