mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Quick fix to a bug where ImageMobjects of size zero weren't displayed
This commit is contained in:
parent
6d032bd10f
commit
60caf2312c
1 changed files with 2 additions and 2 deletions
|
@ -438,8 +438,8 @@ class Camera(object):
|
|||
)
|
||||
|
||||
# Reshape
|
||||
pixel_width = int(pdist([ul_coords, ur_coords]))
|
||||
pixel_height = int(pdist([ul_coords, dl_coords]))
|
||||
pixel_width = max(int(pdist([ul_coords, ur_coords])), 1)
|
||||
pixel_height = max(int(pdist([ul_coords, dl_coords])), 1)
|
||||
sub_image = sub_image.resize(
|
||||
(pixel_width, pixel_height), resample=Image.BICUBIC
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue