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: