From 275cf94b06e66096496d381fe563034299966849 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Tue, 29 Jun 2021 23:03:08 +0800 Subject: [PATCH] Add frame to the scene when initialization If we add an updater to the frame of the camera, and have not added the frame into the scene before, the updater will not work. So, I suggest to add the frame to the objects of the scene at the initilization stage. --- manimlib/scene/scene.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index ad2f3838..8096ba54 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -50,7 +50,7 @@ class Scene(object): self.camera = self.camera_class(**self.camera_config) self.file_writer = SceneFileWriter(self, **self.file_writer_config) - self.mobjects = [] + self.mobjects = [self.camera.frame] self.num_plays = 0 self.time = 0 self.skip_time = 0