Skip to content

Commit

Permalink
Rotation fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Feb 21, 2025
1 parent 507890a commit aab0603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maps4fs/generator/component/texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def rotate_textures(self) -> None:
if self.rotation:
# Iterate over the layers which have tags and rotate them.
for layer in tqdm(self.layers, desc="Rotating textures", unit="layer"):
if layer.tags:
if layer.tags or layer.precise_tags:
self.logger.debug("Rotating layer %s.", layer.name)
layer_paths = layer.paths(self._weights_dir)
layer_paths += [layer.path_preview(self._weights_dir)]
Expand Down Expand Up @@ -274,7 +274,7 @@ def _generate_weights(self, layer: Layer) -> None:
Arguments:
layer (Layer): Layer with textures and tags.
"""
if layer.tags is None:
if layer.tags is None and layer.precise_tags is None:
size = (self.map_size, self.map_size)
else:
size = (self.map_rotated_size, self.map_rotated_size)
Expand Down

0 comments on commit aab0603

Please sign in to comment.