- in Geometry Editor, deleting a shape from the Table context menu will update now the plot
This commit is contained in:
@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
2.09.2021
|
||||||
|
|
||||||
|
- in Geometry Editor, deleting a shape from the Table context menu will update now the plot
|
||||||
|
|
||||||
1.09.2021
|
1.09.2021
|
||||||
|
|
||||||
- fixed the issue in Milling Plugin that did not automatically set the object combo to the previously selected object
|
- fixed the issue in Milling Plugin that did not automatically set the object combo to the previously selected object
|
||||||
|
|||||||
@@ -4171,13 +4171,15 @@ class AppGeoEditor(QtCore.QObject):
|
|||||||
if old_geo.geom_type == 'LineaRing':
|
if old_geo.geom_type == 'LineaRing':
|
||||||
processed_shapes.append(obj_shape)
|
processed_shapes.append(obj_shape)
|
||||||
new_shapes.append(LinearRing(list(old_geo.coords)[::-1]))
|
new_shapes.append(LinearRing(list(old_geo.coords)[::-1]))
|
||||||
|
elif old_geo.geom_type == 'LineString':
|
||||||
|
processed_shapes.append(obj_shape)
|
||||||
|
new_shapes.append(LineString(list(old_geo.coords)[::-1]))
|
||||||
elif old_geo.geom_type == 'Polygon':
|
elif old_geo.geom_type == 'Polygon':
|
||||||
processed_shapes.append(obj_shape)
|
processed_shapes.append(obj_shape)
|
||||||
if old_geo.exterior.is_ccw is True:
|
if old_geo.exterior.is_ccw is True:
|
||||||
new_shapes.append(deepcopy(orient(old_geo, -1)))
|
new_shapes.append(deepcopy(orient(old_geo, -1)))
|
||||||
else:
|
else:
|
||||||
new_shapes.append(deepcopy(orient(old_geo, 1)))
|
new_shapes.append(deepcopy(orient(old_geo, 1)))
|
||||||
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -5019,6 +5021,7 @@ class AppGeoEditor(QtCore.QObject):
|
|||||||
tempref = [s for s in self.selected]
|
tempref = [s for s in self.selected]
|
||||||
for shape in tempref:
|
for shape in tempref:
|
||||||
self.delete_shape(shape)
|
self.delete_shape(shape)
|
||||||
|
self.plot_all()
|
||||||
self.selected = []
|
self.selected = []
|
||||||
self.build_ui()
|
self.build_ui()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user