From 7e78e769667760227dc2a42c1ceec498e976fb69 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 31 Jan 2023 14:46:28 -0800 Subject: [PATCH] Only call become at the end of Transform if the rate func ends at 1 --- manimlib/animation/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.py index 012bfad9..58c4886e 100644 --- a/manimlib/animation/transform.py +++ b/manimlib/animation/transform.py @@ -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: