mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Buf fixes for #1378
This commit is contained in:
parent
1798875396
commit
d7f3f5ad24
3 changed files with 5 additions and 3 deletions
|
@ -25,7 +25,7 @@ class Animation(object):
|
||||||
# If 0 < lag_ratio < 1, its applied to each
|
# If 0 < lag_ratio < 1, its applied to each
|
||||||
# with lagged start times
|
# with lagged start times
|
||||||
"lag_ratio": DEFAULT_ANIMATION_LAG_RATIO,
|
"lag_ratio": DEFAULT_ANIMATION_LAG_RATIO,
|
||||||
"suspend_mobject_updating": True,
|
"suspend_mobject_updating": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, mobject, **kwargs):
|
def __init__(self, mobject, **kwargs):
|
||||||
|
|
|
@ -110,7 +110,8 @@ class DrawBorderThenFill(Animation):
|
||||||
# First time crossing over
|
# First time crossing over
|
||||||
submob.set_data(outline.data)
|
submob.set_data(outline.data)
|
||||||
submob.unlock_data()
|
submob.unlock_data()
|
||||||
submob.lock_matching_data(submob, start)
|
if not self.mobject.has_updaters:
|
||||||
|
submob.lock_matching_data(submob, start)
|
||||||
submob.needs_new_triangulation = False
|
submob.needs_new_triangulation = False
|
||||||
self.sm_to_index[hash(submob)] = 1
|
self.sm_to_index[hash(submob)] = 1
|
||||||
|
|
||||||
|
|
|
@ -511,15 +511,16 @@ class Mobject(object):
|
||||||
for updater_list in [self.time_based_updaters, self.non_time_updaters]:
|
for updater_list in [self.time_based_updaters, self.non_time_updaters]:
|
||||||
while update_function in updater_list:
|
while update_function in updater_list:
|
||||||
updater_list.remove(update_function)
|
updater_list.remove(update_function)
|
||||||
|
self.refresh_has_updater_status()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def clear_updaters(self, recurse=True):
|
def clear_updaters(self, recurse=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.suspend_updating(recurse)
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def match_updaters(self, mobject):
|
def match_updaters(self, mobject):
|
||||||
|
|
Loading…
Add table
Reference in a new issue