mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Added Scene.tear_down in symmetry with Scene.setup
This commit is contained in:
parent
6c78110e0f
commit
56f331e8c4
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,8 @@ class Scene(Container):
|
||||||
self.skip_animations = False
|
self.skip_animations = False
|
||||||
self.wait(self.frame_duration)
|
self.wait(self.frame_duration)
|
||||||
|
|
||||||
|
self.tear_down()
|
||||||
|
|
||||||
if self.write_to_movie:
|
if self.write_to_movie:
|
||||||
self.close_movie_pipe()
|
self.close_movie_pipe()
|
||||||
print("Played a total of %d animations" % self.num_plays)
|
print("Played a total of %d animations" % self.num_plays)
|
||||||
|
@ -96,6 +98,9 @@ class Scene(Container):
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def tear_down(self):
|
||||||
|
pass
|
||||||
|
|
||||||
def setup_bases(self):
|
def setup_bases(self):
|
||||||
for base in self.__class__.__bases__:
|
for base in self.__class__.__bases__:
|
||||||
base.setup(self)
|
base.setup(self)
|
||||||
|
|
Loading…
Add table
Reference in a new issue