mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Only lock data for mobjects without updaters
This commit is contained in:
parent
5f56778cdf
commit
25de729bb3
1 changed files with 5 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue