A community-maintained Python framework for creating mathematical animations.
Mobject should update when an updater is added (by default at least)
Grant Sandersonb42e77256329
diff --git a/mobject/mobject.py b/mobject/mobject.pyindex 4e45009a6..6b0c3f032 100644--- a/mobject/mobject.py+++ b/mobject/mobject.py@@ -170,8 +170,11 @@ class Mobject(Container):def get_updaters(self):return self.updaters- def add_updater(self, update_function):+ def add_updater(self, update_function, call_updater=True):self.updaters.append(update_function)+ if call_updater:+ self.update(0)+ return selfdef remove_updater(self, update_function):while update_function in self.updaters: