Skip to content

Commit 29220ac

Browse files
committed
# Changes in camera.py to fix fixed frame option in 3D
1 parent 7815051 commit 29220ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

manim/camera/camera.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,8 @@ def extract_mobject_family_members(self, mobjects, only_those_with_points=False)
414414
else:
415415
method = Mobject.get_family
416416
if self.use_z_index:
417-
mobjects.sort(key=lambda m: m.z_index)
417+
mobjects = sorted(mobjects,key=lambda m: m.z_index)
418418
return remove_list_redundancies(list(it.chain(*[method(m) for m in mobjects])))
419-
420419
def get_mobjects_to_display(
421420
self, mobjects, include_submobjects=True, excluded_mobjects=None
422421
):

0 commit comments

Comments
 (0)