- fixed a reported issue with the manual cutout in Cutout Plugin where adding more gaps will crash the app due of the manual geometry being a MultiPolygon and not a Polygon as it was assumed

- fixed a reported bug in convert 2 geometry where a MultiLineString' object does not support item assignment“ error was issued
This commit is contained in:
Marius Stanciu
2021-08-29 19:01:46 +03:00
committed by Marius Stanciu
parent 30802901c7
commit 2fd8c76996
3 changed files with 16 additions and 2 deletions

View File

@@ -4563,7 +4563,10 @@ class App(QtCore.QObject):
for tooluid, dict_value in obj.tools.items():
total_solid_geometry += deepcopy(dict_value['solid_geometry'])
# clear the original geometry
dict_value['solid_geometry'][:] = []
if isinstance(dict_value['solid_geometry'], list):
dict_value['solid_geometry'][:] = []
else:
dict_value['solid_geometry'] = []
obj.solid_geometry = deepcopy(total_solid_geometry)
obj.plot()