mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Redid digest_config and introduced digest_locals
This commit is contained in:
@ -9,8 +9,7 @@ import progressbar
|
||||
import inspect
|
||||
|
||||
from helpers import *
|
||||
from mobject import Mobject
|
||||
from topics.geometry import Point
|
||||
from mobject import Mobject, Point
|
||||
|
||||
class Animation(object):
|
||||
DEFAULT_CONFIG = {
|
||||
@ -21,7 +20,7 @@ class Animation(object):
|
||||
def __init__(self, mobject, **kwargs):
|
||||
mobject = instantiate(mobject)
|
||||
assert(isinstance(mobject, Mobject))
|
||||
digest_config(self, Animation, kwargs, locals())
|
||||
digest_config(self, kwargs, locals())
|
||||
self.starting_mobject = copy.deepcopy(self.mobject)
|
||||
if self.alpha_func is None:
|
||||
self.alpha_func = (lambda x : x)
|
||||
|
Reference in New Issue
Block a user