mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 03:37:44 +00:00
Make LaggedStart adopt default rate_func and run_time of the animation it takes in
This commit is contained in:
parent
a409fd6fe5
commit
358b1e6313
1 changed files with 4 additions and 0 deletions
|
|
@ -220,10 +220,14 @@ class LaggedStart(Animation):
|
|||
}
|
||||
|
||||
def __init__(self, AnimationClass, mobject, arg_creator=None, **kwargs):
|
||||
for key in ["rate_func", "run_time"]:
|
||||
if key in AnimationClass.CONFIG:
|
||||
setattr(self, key, AnimationClass.CONFIG[key])
|
||||
digest_config(self, kwargs)
|
||||
for key in "rate_func", "run_time", "lag_ratio":
|
||||
if key in kwargs:
|
||||
kwargs.pop(key)
|
||||
|
||||
if arg_creator is None:
|
||||
def arg_creator(mobject):
|
||||
return (mobject,)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue