Removed separate_moving_and_static from scenes in place of cleaner get_moving_mobjects approach

This commit is contained in:
Grant Sanderson
2018-01-17 22:13:38 -08:00
parent 8e747ddc14
commit 024a9dd3d4
3 changed files with 8 additions and 15 deletions

View File

@ -175,11 +175,10 @@ class ThreeDScene(Scene):
if is_camera_rotating:
self.add(self.ambient_camera_rotation)
def separate_moving_and_static_mobjects(self, *animations):
moving, static = Scene.separate_moving_and_static_mobjects(self, *animations)
def get_moving_mobjects(self, *animations):
if self.camera.rotation_mobject in moving:
return moving + static, []
return moving, static
return self.mobjects
return Scene.get_moving_mobjects(self, *animations)
##############