From 5dcb113996d22bc02b2d286b6d0d16c903c6cf1c Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 29 May 2019 18:28:28 -0700 Subject: [PATCH] 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 --- manimlib/camera/camera.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manimlib/camera/camera.py b/manimlib/camera/camera.py index 77c91586..fbe16a3d 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