mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 13:01:00 +00:00
Scene.play changed such that Animations can reassign mobject attr during animation
This commit is contained in:
parent
086c5b1fa3
commit
3230c186f4
1 changed files with 5 additions and 2 deletions
|
@ -185,11 +185,14 @@ class Scene(object):
|
|||
for t in time_progression:
|
||||
for animation in animations:
|
||||
animation.update(t / animation.run_time)
|
||||
new_frame = disp.paint_mobjects(moving_mobjects, background)
|
||||
new_frame = disp.paint_mobjects(
|
||||
[anim.mobject for anim in animations],
|
||||
background
|
||||
)
|
||||
self.frames.append(new_frame)
|
||||
for animation in animations:
|
||||
animation.clean_up()
|
||||
self.add(*moving_mobjects)
|
||||
self.add(*[anim.mobject for anim in animations])
|
||||
self.repaint_mojects()
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue