mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
Minor fix to camera.py, making SplitScreenCameras work again after some change to background handling made them crash
This commit is contained in:
@ -107,7 +107,7 @@ class Camera(object):
|
||||
|
||||
def set_pixel_array(self, pixel_array, convert_from_floats = False):
|
||||
converted_array = self.convert_pixel_array(pixel_array, convert_from_floats)
|
||||
if not hasattr(self, "pixel_array"): #TODO: And the shapes match?
|
||||
if not (hasattr(self, "pixel_array") and self.pixel_array.shape == converted_array.shape):
|
||||
self.pixel_array = converted_array
|
||||
else:
|
||||
#Set in place
|
||||
|
Reference in New Issue
Block a user