Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Bugfix: Fix -p flag when passing -s (#1022)

KingWampy05ca2949fd1f
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.py
index db80530c8..e062b294f 100644
--- a/manim/scene/scene_file_writer.py
+++ b/manim/scene/scene_file_writer.py
@@ -291,12 +291,11 @@ class SceneFileWriter(object):
image : np.array
The pixel array of the image to save.
"""
- file_path = self.image_file_path
if not config["output_file"]:
- file_path = add_version_before_extension(file_path)
+ self.image_file_path = add_version_before_extension(self.image_file_path)
- image.save(file_path)
- self.print_file_ready_message(file_path)
+ image.save(self.image_file_path)
+ self.print_file_ready_message(self.image_file_path)
def idle_stream(self):
"""