Skip to content

Commit

Permalink
fix(lib): update ManimGL's init
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Dec 10, 2024
1 parent a51d5b6 commit 1f5b6b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manim_slides/slide/manimlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
class Slide(BaseSlide, Scene): # type: ignore[misc]
def __init__(self, *args: Any, **kwargs: Any) -> None:
kwargs.setdefault("file_writer_config", {}).update(
skip_animations=True,
break_into_partial_movies=True,
write_to_movie=True,
)
# See: https://github.com/3b1b/manim/issues/2261
if kwargs["file_writer_config"].setdefault("output_directory", ".") == "":
kwargs["file_writer_config"]["output_directory"] = "."

kwargs["preview"] = False # Avoid opening a preview window
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit 1f5b6b9

Please sign in to comment.