mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
change Scene.apply to take in mob_to_anim function instead of Animation class
This commit is contained in:
@ -163,9 +163,9 @@ class Scene(object):
|
||||
animation.clean_up()
|
||||
return self
|
||||
|
||||
def apply(self, AnimationClass, *args, **kwargs):
|
||||
def apply(self, mob_to_anim_func, **kwargs):
|
||||
self.play(*[
|
||||
AnimationClass(mobject, *args, **kwargs)
|
||||
mob_to_anim_func(mobject)
|
||||
for mobject in self.mobjects
|
||||
])
|
||||
|
||||
|
Reference in New Issue
Block a user