maps4fs 1.3.1__py3-none-any.whl → 1.3.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,9 +77,11 @@ class Background(Component):
77
77
  self.map_directory,
78
78
  self.logger,
79
79
  )
80
- dem.auto_process = autoprocess
81
80
  dem.preprocess()
82
81
  dem.is_preview = self.is_preview(name) # type: ignore
82
+ if dem.is_preview: # type: ignore
83
+ dem.multiplier = 1
84
+ dem.auto_process = autoprocess
83
85
  dem.set_output_resolution((self.rotated_size, self.rotated_size))
84
86
  dem.set_dem_path(output_path)
85
87
  dems.append(dem)
maps4fs/generator/dem.py CHANGED
@@ -54,9 +54,10 @@ class DEM(Component):
54
54
  elif blur_radius % 2 == 0:
55
55
  blur_radius += 1
56
56
  self.blur_radius = blur_radius
57
+ self.multiplier = self.map.dem_settings.multiplier
57
58
  self.logger.debug(
58
59
  "DEM value multiplier is %s, blur radius is %s.",
59
- self.map.dem_settings.multiplier,
60
+ self.multiplier,
60
61
  self.blur_radius,
61
62
  )
62
63
 
@@ -188,11 +189,11 @@ class DEM(Component):
188
189
  resampled_data = self._normalize_dem(resampled_data)
189
190
  else:
190
191
  self.logger.debug("Auto processing is disabled, DEM data will not be normalized.")
191
- resampled_data = resampled_data * self.map.dem_settings.multiplier
192
+ resampled_data = resampled_data * self.multiplier
192
193
 
193
194
  self.logger.debug(
194
195
  "DEM data was multiplied by %s. Min: %s, max: %s. Data type: %s.",
195
- self.map.dem_settings.multiplier,
196
+ self.multiplier,
196
197
  resampled_data.min(),
197
198
  resampled_data.max(),
198
199
  resampled_data.dtype,
@@ -207,7 +208,7 @@ class DEM(Component):
207
208
  self.logger.debug(
208
209
  "DEM data was multiplied by %s and clipped to 16-bit unsigned integer range. "
209
210
  "Min: %s, max: %s.",
210
- self.map.dem_settings.multiplier,
211
+ self.multiplier,
211
212
  resampled_data.min(),
212
213
  resampled_data.max(),
213
214
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maps4fs
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: Generate map templates for Farming Simulator from real places.
5
5
  Author-email: iwatkot <iwatkot@gmail.com>
6
6
  License: MIT License
@@ -523,3 +523,6 @@ But also, I want to thank the people who helped me with the project in some way,
523
523
  - [Ka5tis](https://github.com/Ka5tis) - for investigating the issue with a "spiky terrain" and finding a solution - changing the `DisplacementLayer` size to a higher value.
524
524
  - [Kalderone](https://www.youtube.com/@Kalderone_FS22) - for useful feedback, suggestions, expert advice on the map-making process and highlihting some important settings in the Giants Editor.
525
525
  - [OneSunnySunday](https://www.artstation.com/onesunnysunday) - for expert advice on Blender, help in processing background terrain, and compiling detailed tutorials on how to prepare the OBJ files for use in Giants Editor.
526
+ - [BFernaesds](https://github.com/BFernaesds) - for the manual tests of the app.
527
+ - [gamerdesigns](https://github.com/gamerdesigns) - for the manual tests of the app.
528
+ - [Tox3](https://github.com/Tox3) - for the manual tests of the app.
@@ -1,10 +1,10 @@
1
1
  maps4fs/__init__.py,sha256=MlM_vkLH_22xoBwhoRD52JDECCmeAJ8gBQr7RMQZmis,261
2
2
  maps4fs/logger.py,sha256=B-NEYpMjPAAqlV4VpfTi6nbBFnEABVtQOaYe6nMpidg,1489
3
3
  maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
4
- maps4fs/generator/background.py,sha256=mVffAsVyerd8t17c3pLQMStkdM_cYVoqreQq1XeqfVo,22318
4
+ maps4fs/generator/background.py,sha256=LDM8377BpBa9Iy1AMK0c0sbW8QTvhVM3yFlf-bu8APU,22400
5
5
  maps4fs/generator/component.py,sha256=XN-3Zx0bujugpuRk3YB-pYNwUHREdyt_cLxPd7pr57g,17967
6
6
  maps4fs/generator/config.py,sha256=b7qY0luC-_WM_c72Ohtlf4FrB37X5cALInbestSdUsw,4382
7
- maps4fs/generator/dem.py,sha256=5PMooBbDk_HrSOwu3ha7QvWc2AyzBNf-ELmZoIFzPL0,15946
7
+ maps4fs/generator/dem.py,sha256=DoQk6IPkS47eF21rh7JZoiUr1bAzuJkdF41ejAqykW4,15937
8
8
  maps4fs/generator/game.py,sha256=ZQeYzPzPB3CG41avdhNCyTZpHEeedqNBuAbNevTZuXg,7931
9
9
  maps4fs/generator/grle.py,sha256=zdYM-MHGfa3CHKgnOnd4EpCKF6HfY_sUfeJbo7-cic0,17489
10
10
  maps4fs/generator/i3d.py,sha256=fsKveRWQk68fpWRwMYqSL4RfHkD0dLUyNHi_iAyANso,18225
@@ -14,8 +14,8 @@ maps4fs/generator/texture.py,sha256=57R0v4QuB-tnr_75hgGxfUTX5ennrULkhqiDNTgzi4s,
14
14
  maps4fs/toolbox/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
15
15
  maps4fs/toolbox/background.py,sha256=9BXWNqs_n3HgqDiPztWylgYk_QM4YgBpe6_ZNQAWtSc,2154
16
16
  maps4fs/toolbox/dem.py,sha256=z9IPFNmYbjiigb3t02ZenI3Mo8odd19c5MZbjDEovTo,3525
17
- maps4fs-1.3.1.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
18
- maps4fs-1.3.1.dist-info/METADATA,sha256=bL-S19qV6nsg22XWF2CRepeyyGHWABFKrq4O3eCQk0E,30673
19
- maps4fs-1.3.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
- maps4fs-1.3.1.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
21
- maps4fs-1.3.1.dist-info/RECORD,,
17
+ maps4fs-1.3.2.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
18
+ maps4fs-1.3.2.dist-info/METADATA,sha256=PysvMKUBYzqwHkBqoahH6uziBlrrNCySs8RKvv6XlhM,30910
19
+ maps4fs-1.3.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
+ maps4fs-1.3.2.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
21
+ maps4fs-1.3.2.dist-info/RECORD,,