ManimCommunity / manim

A community-maintained Python framework for creating mathematical animations.
https://www.manim.community
MIT License
21.42k stars 1.57k forks source link

Fix :attr:`.ManimConfig.format` not updating movie file extension #3839

Closed JasonGrace2282 closed 2 months ago

JasonGrace2282 commented 3 months ago

Closes #3837

Example of Bug

>>> from manim import config
>>> config.movie_file_extension
'.mp4'
>>> config.format = "webm"
>>> config.movie_file_extension
'.mp4'
>>> config.transparent = config.transparent
>>> config.movie_file_extension
'.webm'
behackl commented 2 months ago

should we add a test for this?

JasonGrace2282 commented 2 months ago

Good idea, I'm not sure how I forgot that :)