Skip to content

Commit 05ca294

Browse files
authored
Bugfix: Fix -p flag when passing -s (#1022)
1 parent aced989 commit 05ca294

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

manim/scene/scene_file_writer.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,11 @@ def save_final_image(self, image):
291291
image : np.array
292292
The pixel array of the image to save.
293293
"""
294-
file_path = self.image_file_path
295294
if not config["output_file"]:
296-
file_path = add_version_before_extension(file_path)
295+
self.image_file_path = add_version_before_extension(self.image_file_path)
297296

298-
image.save(file_path)
299-
self.print_file_ready_message(file_path)
297+
image.save(self.image_file_path)
298+
self.print_file_ready_message(self.image_file_path)
300299

301300
def idle_stream(self):
302301
"""

0 commit comments

Comments
 (0)