]> marstr Code Repo - marstr/orthographic.git/commitdiff
Removed cache clearing at the end of genphoto
authorMarcus Str. <marcus@marstr.online>
Sat, 21 Dec 2024 18:34:25 +0000 (19:34 +0100)
committerMarcus Str. <marcus@marstr.online>
Sat, 21 Dec 2024 18:34:25 +0000 (19:34 +0100)
photogen.py

index 5dbb40d2c50d0e375d0d52229b5c9aafde8c498f..8a6c2fb99685a06b88385bc5b9e47d6d0bd9077e 100644 (file)
@@ -228,12 +228,6 @@ class mstr_photogen:
         \r
         os.remove(mstr_datafolder + "z_orthographic/orthos/" + self._latlngfld + "/" + str(self._ty) + "_" + str(self._tx) + ".png")\r
 \r
-        # Clear cache\r
-        cache = glob.glob(mstr_datafolder + "_cache/*" + str(self._lat) + "-" + str(self._ty) + "_" + str(self._lng) + "-" + str(self._tx) + "*.png")\r
-        for f in range(len(cache)):\r
-            os.remove(cache[f])\r
-\r
-\r
         # Now generate the normal map for this ortho.\r
         # But only if this is enabled.\r
         if mstr_xp_genscenery and mstr_xp_scn_normalmaps:\r