Make sure mobject data gets unlocked after animations

This commit is contained in:
Grant Sanderson 2021-03-18 17:43:15 -07:00
parent f6ff070a8e
commit 288983e7b9

View file

@ -25,6 +25,10 @@ class ShowPartial(Animation):
if not self.should_match_start:
self.mobject.lock_matching_data(self.mobject, self.starting_mobject)
def finish(self):
super().finish()
self.mobject.unlock_data()
def interpolate_submobject(self, submob, start_submob, alpha):
submob.pointwise_become_partial(
start_submob, *self.get_bounds(alpha)