mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +08:00
Better Scene mobject management
This commit is contained in:
@ -16,6 +16,8 @@ class Animation(object):
|
||||
"run_time" : DEFAULT_ANIMATION_RUN_TIME,
|
||||
"rate_func" : smooth,
|
||||
"name" : None,
|
||||
#Does this animation add or remove a mobject form the screen
|
||||
"remover" : False,
|
||||
}
|
||||
def __init__(self, mobject, **kwargs):
|
||||
mobject = instantiate(mobject)
|
||||
@ -63,6 +65,9 @@ class Animation(object):
|
||||
#Typically ipmlemented by subclass
|
||||
pass
|
||||
|
||||
def is_remover(self):
|
||||
return self.remover
|
||||
|
||||
def clean_up(self):
|
||||
self.update(1)
|
||||
|
||||
|
Reference in New Issue
Block a user