From 9c381d15b6e66ca96b44c590391b3a0cb5eeaedb Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 25 Mar 2019 16:43:40 -0700 Subject: [PATCH] ThreeDScene was still using continual animation constructs --- manimlib/scene/three_d_scene.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/manimlib/scene/three_d_scene.py b/manimlib/scene/three_d_scene.py index ccf047d8..da120610 100644 --- a/manimlib/scene/three_d_scene.py +++ b/manimlib/scene/three_d_scene.py @@ -42,6 +42,7 @@ class ThreeDScene(Scene): def stop_ambient_camera_rotation(self): self.camera.theta_tracker.clear_updaters() + self.remove(self.camera.theta_tracker) def move_camera(self, phi=None, @@ -68,12 +69,8 @@ class ThreeDScene(Scene): self.camera.frame_center.move_to, frame_center )) - is_camera_rotating = self.ambient_camera_rotation in self.continual_animations - if is_camera_rotating: - self.remove(self.ambient_camera_rotation) + self.play(*anims + added_anims) - if is_camera_rotating: - self.add(self.ambient_camera_rotation) def get_moving_mobjects(self, *animations): moving_mobjects = Scene.get_moving_mobjects(self, *animations)