- in Cutout Plugin remade the UI and fixed different issues

This commit is contained in:
Marius Stanciu
2021-09-24 21:09:54 +03:00
committed by Marius
parent d3a16df32c
commit 0854101297
7 changed files with 314 additions and 329 deletions

View File

@@ -1365,9 +1365,12 @@ class GeometryObject(FlatCAMObj, Geometry):
visible = visible if visible else self.options['plot']
try:
for sub_el in element:
self.plot_element(sub_el, color=color)
if isinstance(element, (MultiPolygon, MultiLineString)):
for sub_el in element.geoms:
self.plot_element(sub_el, color=color)
else:
for sub_el in element:
self.plot_element(sub_el, color=color)
except TypeError: # Element is not iterable...
# if self.app.is_legacy is False:
self.add_shape(shape=element, color=color, visible=visible, layer=0)