Skip to content

Commit 610f85c

Browse files
authored
Add deprecation warning to animation.update() (Addresses #421) (#503)
* addresses #421 , add deprecation warning to animation.update() * black formatting
1 parent 57158c3 commit 610f85c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manim/animation/animation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import numpy as np
1010

11+
from .. import logger
1112
from ..mobject.mobject import Mobject
1213
from ..utils.config_ops import digest_config
1314
from ..utils.rate_functions import smooth
@@ -117,6 +118,10 @@ def update(self, alpha):
117118
This method shouldn't exist, but it's here to
118119
keep many old scenes from breaking
119120
"""
121+
logger.warning(
122+
"animation.update() has been deprecated. "
123+
"Please use animation.interpolate() instead."
124+
)
120125
self.interpolate(alpha)
121126

122127
def interpolate_mobject(self, alpha):

0 commit comments

Comments
 (0)