From b13b94938a580d5627dd0efebead21a2abbd05bc Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 6 Jan 2021 12:46:46 -0800 Subject: [PATCH] Remove no-longer-needed hack for pixel_coords_to_space_coords --- manimlib/camera/camera.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/manimlib/camera/camera.py b/manimlib/camera/camera.py index 00e0a825..ae31fe3f 100644 --- a/manimlib/camera/camera.py +++ b/manimlib/camera/camera.py @@ -299,11 +299,7 @@ class Camera(object): self.frame.set_width(frame_width) def pixel_coords_to_space_coords(self, px, py, relative=False): - # pw, ph = self.fbo.size - # Bad hack, not sure why this is needed. - pw, ph = self.get_pixel_shape() - pw //= 2 - ph //= 2 + pw, ph = self.fbo.size fw, fh = self.get_frame_shape() fc = self.get_frame_center() if relative: