Corrected bug in layergen preventing generation of tile completion layer

This commit is contained in:
marstr 2024-08-27 21:24:32 +02:00
parent e2d5b3dc98
commit f455988334
3 changed files with 332 additions and 335 deletions

View File

@ -99,12 +99,9 @@ class mstr_layergen:
return layer_final
# This generates the layer to be masked
# This generates the layer from the defined mask
def genlayer(self):
# Ok so. For speed reasons, we only proceed if there is anything to do.
if os.path.isfile(mstr_datafolder + "_cache\\" + str(self._latitude) + "-" + str(self._lat_number) + "_" + str(self._longitude) + "-" + str(self._lng_number) + "_" + self._tag + "-" + self._value + ".png"):
mstr_msg("mstr_layergen", "Layer to be generated: " + str(self._latitude) + "-" + str(self._lat_number) + ":" + str(self._longitude) + "-" + str(self._lng_number) + " -- tag: " + self._tag + " - value: " + self._value )
# Before we generate the layer, let's check for airports in this chunk

View File

@ -122,7 +122,6 @@ class mstr_orthographic:
lg.genlayer()
mstr_msg("mstr_orthographic", "All layers created")
# We should have all layers now.
# Snap a photo with our satellite :)
mstr_msg("mstr_orthographic", "Generating ortho photo")

View File

@ -42,6 +42,7 @@ class mstr_photogen:
# First, we walk through all layers and blend them on top of each other, in order
mstr_msg("mstr_photogen", "Merging layers")
for l in mstr_ortho_layers:
if os.path.isfile(root_filename + l[0] + "-" + l[1] + "_layer.png"):
# Need to divert in case we have shadows