Small bug fix to foreground mobject behavior during an animation

This commit is contained in:
Grant Sanderson 2018-01-19 18:57:52 -08:00
parent 78b660bb92
commit e6df91d03e

View file

@ -314,7 +314,10 @@ class Scene(object):
def get_moving_mobjects(self, *animations):
moving_mobjects = list(it.chain(
[anim.mobject for anim in animations],
[
anim.mobject for anim in animations
if anim.mobject not in self.foreground_mobjects
],
[ca.mobject for ca in self.continual_animations],
self.foreground_mobjects,
))