mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +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.target_copy = self.target_mobject.copy()
|
||||||
self.mobject.align_data_and_family(self.target_copy)
|
self.mobject.align_data_and_family(self.target_copy)
|
||||||
super().begin()
|
super().begin()
|
||||||
self.mobject.lock_matching_data(
|
if not self.mobject.has_updaters:
|
||||||
self.starting_mobject,
|
self.mobject.lock_matching_data(
|
||||||
self.target_copy,
|
self.starting_mobject,
|
||||||
)
|
self.target_copy,
|
||||||
|
)
|
||||||
|
|
||||||
def finish(self) -> None:
|
def finish(self) -> None:
|
||||||
super().finish()
|
super().finish()
|
||||||
|
|
Loading…
Add table
Reference in a new issue