mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Camera pixel_shape should reflect the drawn fbo
This commit is contained in:
parent
c13495deeb
commit
b0cca9e4b6
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class Camera(object):
|
|||
return self.frame.get_shape()[0] / self.get_pixel_shape()[0]
|
||||
|
||||
def get_pixel_shape(self) -> tuple[int, int]:
|
||||
return self.fbo.viewport[2:4]
|
||||
return self.draw_fbo.size
|
||||
|
||||
def get_pixel_width(self) -> int:
|
||||
return self.get_pixel_shape()[0]
|
||||
|
|
Loading…
Add table
Reference in a new issue