mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Temporary hack to fix a bug I don't understand
This commit is contained in:
parent
7b72fa8ca1
commit
82fa6ab125
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue