Skip to content

Commit

Permalink
fix tile load error when cache is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
cff29546 committed Apr 20, 2023
1 parent 99d7e27 commit 203280b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pzmap2dzi/texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ def save_to_cache(self, name, t):
extra[0] = 1

# free current and reload using shared memory
return self.load_from_cache(name)
cached = self.load_from_cache(name)
if cached:
return cached
return t

def load_pages(self):
if self.texture_path:
Expand Down

0 comments on commit 203280b

Please sign in to comment.