mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Account for 'target_mobject is None' case
This commit is contained in:
parent
9696827213
commit
acdc2654d3
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ class Transform(Animation):
|
|||
def finish(self) -> None:
|
||||
super().finish()
|
||||
self.mobject.unlock_data()
|
||||
self.mobject.become(self.target_mobject)
|
||||
if self.target_mobject is not None:
|
||||
self.mobject.become(self.target_mobject)
|
||||
|
||||
def create_target(self) -> Mobject:
|
||||
# Has no meaningful effect here, but may be useful
|
||||
|
|
Loading…
Add table
Reference in a new issue