Only lock data for mobjects without updaters

This commit is contained in:
Grant Sanderson 2022-05-14 17:28:31 -07:00
parent 5f56778cdf
commit 25de729bb3

View file

@ -68,10 +68,11 @@ class Transform(Animation):
self.target_copy = self.target_mobject.copy()
self.mobject.align_data_and_family(self.target_copy)
super().begin()
self.mobject.lock_matching_data(
self.starting_mobject,
self.target_copy,
)
if not self.mobject.has_updaters:
self.mobject.lock_matching_data(
self.starting_mobject,
self.target_copy,
)
def finish(self) -> None:
super().finish()