mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Be sure has_updater_status is properly updated after clear
This commit is contained in:
@ -591,10 +591,10 @@ class Mobject(object):
|
|||||||
def clear_updaters(self, recurse: bool = True):
|
def clear_updaters(self, recurse: bool = True):
|
||||||
self.time_based_updaters = []
|
self.time_based_updaters = []
|
||||||
self.non_time_updaters = []
|
self.non_time_updaters = []
|
||||||
self.refresh_has_updater_status()
|
|
||||||
if recurse:
|
if recurse:
|
||||||
for submob in self.submobjects:
|
for submob in self.submobjects:
|
||||||
submob.clear_updaters()
|
submob.clear_updaters()
|
||||||
|
self.refresh_has_updater_status()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def match_updaters(self, mobject: Mobject):
|
def match_updaters(self, mobject: Mobject):
|
||||||
|
Reference in New Issue
Block a user