Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix an incorrect if-statement.

Aathish Sivasubrahmanian14de94b51477
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.py
index 0fc4efe39..a7b1b2f4b 100644
--- a/manim/scene/scene_file_writer.py
+++ b/manim/scene/scene_file_writer.py
@@ -491,18 +491,17 @@ class SceneFileWriter(object):
'-safe', '0',
'-i', file_list,
'-loglevel', 'error',
+ ]
+
+ if self.write_to_movie:
+ commands += [
'-c', 'copy',
movie_file_path
- ]
- if not self.save_as_gif:
- commands+=[
- "-c", "copy",
- movie_file_path
]
+
if self.save_as_gif:
- movie_file_path=self.gif_file_path
commands += [
- movie_file_path
+ self.gif_file_path
]
if not self.includes_sound:
commands.insert(-1, '-an')