A community-maintained Python framework for creating mathematical animations.
Minor fix to camera.py, making SplitScreenCameras work again after some change to background handling made them crash
Sridhar Ramesh1b9cde00d95d
diff --git a/camera/camera.py b/camera/camera.pyindex e4703eadf..ef988f893 100644--- a/camera/camera.py+++ b/camera/camera.py@@ -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_arrayelse:#Set in place