Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added Scene.tear_down in symmetry with Scene.setup

Grant Sanderson56f331e8c421
diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py
index 6c72b545c..de24a44b1 100644
--- a/manimlib/scene/scene.py
+++ b/manimlib/scene/scene.py
@@ -84,6 +84,8 @@ class Scene(Container):
self.skip_animations = False
self.wait(self.frame_duration)
+ self.tear_down()
+
if self.write_to_movie:
self.close_movie_pipe()
print("Played a total of %d animations" % self.num_plays)
@@ -96,6 +98,9 @@ class Scene(Container):
"""
pass
+ def tear_down(self):
+ pass
+
def setup_bases(self):
for base in self.__class__.__bases__:
base.setup(self)