Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Moving the frame_center of camera was not working. This fixes it, but I suspect there is a need for a deeper fix where everything is handled in transform_points_pre_display properly for the various camera classes

Grant Sanderson5dcb113996d2
diff --git a/manimlib/camera/camera.py b/manimlib/camera/camera.py
index 77c91586d..fbe16a3dc 100644
--- a/manimlib/camera/camera.py
+++ b/manimlib/camera/camera.py
@@ -332,6 +332,8 @@ class Camera(object):
points = self.transform_points_pre_display(
vmobject, vmobject.points
)
+ # TODO, shouldn't this be handled in transform_points_pre_display?
+ points = points - self.get_frame_center()
if len(points) == 0:
return