A community-maintained Python framework for creating mathematical animations.
Changed SceneFileWriter.get_default_file_name
Grant Sandersonbf8f517b496b
diff --git a/manimlib/scene/scene_file_writer.py b/manimlib/scene/scene_file_writer.pyindex a6aaa7211..c385483f4 100644--- a/manimlib/scene/scene_file_writer.py+++ b/manimlib/scene/scene_file_writer.py@@ -34,6 +34,7 @@ class SceneFileWriter(object):# TODO, address this in extract_scene et. al."file_name": None,"output_directory": None,+ "file_name": None,}def __init__(self, scene, **kwargs):@@ -80,7 +81,10 @@ class SceneFileWriter(object):return scene_module.replace(".", os.path.sep)def get_default_file_name(self):- return self.scene.__class__.__name__+ if self.file_name is None:+ return self.scene.__class__.__name__+ else:+ return self.file_namedef get_movie_directory(self):pixel_height = self.scene.camera.pixel_height