mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Don't use 'become' for interpolate at alpha = 0 or 1
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user