Don't use 'become' for interpolate at alpha = 0 or 1

This commit is contained in:
Grant Sanderson
2023-01-26 16:43:40 -08:00
parent a8da171adb
commit 8ef71bb930
2 changed files with 6 additions and 4 deletions

View File

@ -121,10 +121,6 @@ class Transform(Animation):
target_copy: Mobject,
alpha: float
):
if alpha == 0:
submob.become(start)
elif alpha == 1:
submob.become(target_copy)
submob.interpolate(start, target_copy, alpha, self.path_func)
return self