Skip to content

Commit

Permalink
Avoid printing caching message if write-to-movie is false
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Jun 23, 2024
1 parent 46aee9d commit c628d5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manim/_config/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
notify_outdated_version = True

# -w, --write_to_movie
write_to_movie = True
write_to_movie = False

format = mp4

Expand Down
3 changes: 2 additions & 1 deletion manim/cli/render/output_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
help="Zero padding for PNG file names.",
),
option(
"-w",
"--write_to_movie",
is_flag=True,
default=None,
help="Write the video rendered with opengl to a file.",
help="Write the video to a file.",
),
option(
"--media_dir",
Expand Down
2 changes: 2 additions & 0 deletions manim/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ def _write_hashed_movie_file(self) -> None:
Essentially, a series of methods that need to be called to successfully
render a frame.
"""
if not config.write_to_movie:
return

if config.disable_caching:
if not config.disable_caching_warning:
Expand Down

0 comments on commit c628d5d

Please sign in to comment.