- in Geo Editor fixed another Shapely deprecation warning in flatten() method

This commit is contained in:
Marius Stanciu
2021-10-15 01:51:50 +03:00
committed by Marius
parent 156ffb23ed
commit 205e6a4ae0
2 changed files with 7 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
- added an ugly form of extra pad passes functionality in Isolation Plugin - does not take into consideration the milling direction
- fixed a Shapely deprecation warning in export_dxf() in GeometryObject class
- in Geo Editor fixed another Shapely deprecation warning in flatten() method
14.10.2021

View File

@@ -6021,7 +6021,12 @@ class AppGeoEditor(QtCore.QObject):
# ## If iterable, expand recursively.
try:
for geo in geometry:
if isinstance(geometry, (MultiPolygon, MultiLineString)):
work_geo = geometry.geoms
else:
work_geo = geometry
for geo in work_geo:
if geo is not None:
self.flatten(geometry=geo,
orient_val=orient_val,