mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 12:32:36 +08:00
Remove no-longer-needed hack for pixel_coords_to_space_coords
This commit is contained in:
@ -299,11 +299,7 @@ class Camera(object):
|
|||||||
self.frame.set_width(frame_width)
|
self.frame.set_width(frame_width)
|
||||||
|
|
||||||
def pixel_coords_to_space_coords(self, px, py, relative=False):
|
def pixel_coords_to_space_coords(self, px, py, relative=False):
|
||||||
# pw, ph = self.fbo.size
|
pw, ph = self.fbo.size
|
||||||
# Bad hack, not sure why this is needed.
|
|
||||||
pw, ph = self.get_pixel_shape()
|
|
||||||
pw //= 2
|
|
||||||
ph //= 2
|
|
||||||
fw, fh = self.get_frame_shape()
|
fw, fh = self.get_frame_shape()
|
||||||
fc = self.get_frame_center()
|
fc = self.get_frame_center()
|
||||||
if relative:
|
if relative:
|
||||||
|
Reference in New Issue
Block a user