Removed cache clearing at the end of genphoto

This commit is contained in:
Marcus Str. 2024-12-21 19:34:25 +01:00
parent c7f96e7783
commit 58f626abe1

View File

@ -228,12 +228,6 @@ class mstr_photogen:
os.remove(mstr_datafolder + "z_orthographic/orthos/" + self._latlngfld + "/" + str(self._ty) + "_" + str(self._tx) + ".png") 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. # Now generate the normal map for this ortho.
# But only if this is enabled. # But only if this is enabled.
if mstr_xp_genscenery and mstr_xp_scn_normalmaps: if mstr_xp_genscenery and mstr_xp_scn_normalmaps: