mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added warning to usage of OldLaggedStart
This commit is contained in:
parent
4fd27febf9
commit
643955ab1c
1 changed files with 5 additions and 0 deletions
|
@ -149,6 +149,11 @@ class OldLaggedStart(Animation):
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, AnimationClass, mobject, arg_creator=None, **kwargs):
|
def __init__(self, AnimationClass, mobject, arg_creator=None, **kwargs):
|
||||||
|
print(
|
||||||
|
"Warning, this scene is using the animation "
|
||||||
|
"OldLaggedStart, which is now deprecated. Use "
|
||||||
|
"LaggedStart instead."
|
||||||
|
)
|
||||||
for key in ["rate_func", "run_time"]:
|
for key in ["rate_func", "run_time"]:
|
||||||
if key in AnimationClass.CONFIG:
|
if key in AnimationClass.CONFIG:
|
||||||
setattr(self, key, AnimationClass.CONFIG[key])
|
setattr(self, key, AnimationClass.CONFIG[key])
|
||||||
|
|
Loading…
Add table
Reference in a new issue