Temporary hack to fix a bug I don't understand

This commit is contained in:
Grant Sanderson 2021-10-24 09:28:39 -07:00
parent 7b72fa8ca1
commit 82fa6ab125

View file

@ -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")