A community-maintained Python framework for creating mathematical animations.
Add deprecation warning to animation.update() (Addresses #421) (#503)
Musab Kılıç610f85c64b29
diff --git a/manim/animation/animation.py b/manim/animation/animation.pyindex f136d2bcb..4f7516b27 100644--- a/manim/animation/animation.py+++ b/manim/animation/animation.py@@ -8,6 +8,7 @@ from copy import deepcopyimport numpy as np+from .. import loggerfrom ..mobject.mobject import Mobjectfrom ..utils.config_ops import digest_configfrom ..utils.rate_functions import smooth@@ -117,6 +118,10 @@ class Animation(object):This method shouldn't exist, but it's here tokeep many old scenes from breaking"""+ logger.warning(+ "animation.update() has been deprecated. "+ "Please use animation.interpolate() instead."+ )self.interpolate(alpha)def interpolate_mobject(self, alpha):