Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added warning to usage of OldLaggedStart

Grant Sanderson643955ab1c68
diff --git a/manimlib/animation/composition.py b/manimlib/animation/composition.py
index 048b09a52..c5dd6d1aa 100644
--- a/manimlib/animation/composition.py
+++ b/manimlib/animation/composition.py
@@ -149,6 +149,11 @@ class OldLaggedStart(Animation):
}
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"]:
if key in AnimationClass.CONFIG:
setattr(self, key, AnimationClass.CONFIG[key])