Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

# Changes in camera.py to fix fixed frame option in 3D

kolibril1329220ac509ed
diff --git a/manim/camera/camera.py b/manim/camera/camera.py
index 8dc65309b..fdc0c4b25 100644
--- a/manim/camera/camera.py
+++ b/manim/camera/camera.py
@@ -414,9 +414,8 @@ class Camera(object):
else:
method = Mobject.get_family
if self.use_z_index:
- mobjects.sort(key=lambda m: m.z_index)
+ mobjects = sorted(mobjects,key=lambda m: m.z_index)
return remove_list_redundancies(list(it.chain(*[method(m) for m in mobjects])))
-
def get_mobjects_to_display(
self, mobjects, include_submobjects=True, excluded_mobjects=None
):