mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Don't write to file by default
This commit is contained in:
parent
860a19f675
commit
21bee39377
2 changed files with 8 additions and 1 deletions
|
|
@ -707,6 +707,11 @@ class ManimConfig(MutableMapping):
|
|||
if args.tex_template:
|
||||
self.tex_template = TexTemplateFromFile(tex_filename=args.tex_template)
|
||||
|
||||
if self.use_opengl_renderer:
|
||||
if getattr(args, "write_to_movie") is None:
|
||||
# --write_to_movie was not passed on the command line, so don't generate video.
|
||||
self["write_to_movie"] = False
|
||||
|
||||
return self
|
||||
|
||||
def digest_file(self, filename: str) -> "ManimConfig":
|
||||
|
|
|
|||
|
|
@ -382,7 +382,9 @@ class OpenGLRenderer:
|
|||
|
||||
window_background_color = (0.2, 0.2, 0.2, 1)
|
||||
update_frame()
|
||||
self.file_writer.write_frame(self)
|
||||
|
||||
if config["write_to_movie"]:
|
||||
self.file_writer.write_frame(self)
|
||||
|
||||
if self.window is not None:
|
||||
self.window.swap_buffers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue