From 58f626abe1bdcd249cf2e415257f18a80e518b41 Mon Sep 17 00:00:00 2001 From: "Marcus Str." Date: Sat, 21 Dec 2024 19:34:25 +0100 Subject: [PATCH] Removed cache clearing at the end of genphoto --- photogen.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/photogen.py b/photogen.py index 5dbb40d..8a6c2fb 100644 --- a/photogen.py +++ b/photogen.py @@ -228,12 +228,6 @@ class mstr_photogen: os.remove(mstr_datafolder + "z_orthographic/orthos/" + self._latlngfld + "/" + str(self._ty) + "_" + str(self._tx) + ".png") - # Clear cache - cache = glob.glob(mstr_datafolder + "_cache/*" + str(self._lat) + "-" + str(self._ty) + "_" + str(self._lng) + "-" + str(self._tx) + "*.png") - for f in range(len(cache)): - os.remove(cache[f]) - - # Now generate the normal map for this ortho. # But only if this is enabled. if mstr_xp_genscenery and mstr_xp_scn_normalmaps: