From b42e7725632912780b50445c4aff2b2ffe41d9ac Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 27 Aug 2018 16:32:12 -0700 Subject: [PATCH] Mobject should update when an updater is added (by default at least) --- mobject/mobject.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mobject/mobject.py b/mobject/mobject.py index 4e45009a..6b0c3f03 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 self def remove_updater(self, update_function): while update_function in self.updaters: