mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Only call become at the end of Transform if the rate func ends at 1
This commit is contained in:
parent
1e46847a69
commit
7e78e76966
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class Transform(Animation):
|
|||
def finish(self) -> None:
|
||||
super().finish()
|
||||
self.mobject.unlock_data()
|
||||
if self.target_mobject is not None:
|
||||
if self.target_mobject is not None and self.rate_func(1) == 1:
|
||||
self.mobject.become(self.target_mobject)
|
||||
|
||||
def create_target(self) -> Mobject:
|
||||
|
|
Loading…
Add table
Reference in a new issue