About halfway through eoc1 remake

This commit is contained in:
Grant Sanderson
2017-04-04 16:57:53 -07:00
parent 8b12ec879e
commit 0e09120092
5 changed files with 985 additions and 33 deletions

View File

@ -120,8 +120,11 @@ class Animation(object):
def clean_up(self, surrounding_scene = None):
self.update(1)
if self.is_remover() and surrounding_scene is not None:
surrounding_scene.remove(self.mobject)
if surrounding_scene is not None:
if self.is_remover():
surrounding_scene.remove(self.mobject)
else:
surrounding_scene.add(self.mobject)
return self