Closed christopher-hampson closed 4 months ago
Hello, thanks for sending a PR for this feature :) Off of a quick look, the implementation seems fine (I'll take a closer look, hopefully later this week). Would you mind adding some tests for this behavior? Thanks for helping make Manim better :sparkles:
P.S. Don't worry about the pre-commit failure. We'll fix that in a different PR.
Just tested and it works for me! A simple test to add would be something like
def test_animation_set_default(): s = Square() Rotate.set_default(run_time=100) anim = Rotate(s) assert anim.run_time == 100
Other than that, looks good to me :)
Thanks for reviewing and suggesting this test! I'll get this added shortly. :+1:
Overview: What does this pull request change?
Adds set_default class method to Animation class based on existing implementation for Mobject class.
Motivation and Explanation: Why and how do your changes improve the library?
Addresses issue #3142
Links to added or changed documentation pages
Further Information and Comments
Reviewer Checklist