From 82fa6ab125c3dff4c775f68de3de1b3adf9e585e Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 24 Oct 2021 09:28:39 -0700 Subject: [PATCH] Temporary hack to fix a bug I don't understand --- manimlib/camera/camera.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manimlib/camera/camera.py b/manimlib/camera/camera.py index 8144dd48..e585d110 100644 --- a/manimlib/camera/camera.py +++ b/manimlib/camera/camera.py @@ -445,6 +445,8 @@ class Camera(object): def get_texture_id(self, path): if path not in self.path_to_texture: + if self.n_textures == 15: # I have no clue why this is needed + self.n_textures += 1 tid = self.n_textures self.n_textures += 1 im = Image.open(path).convert("RGBA")