- wip in adding Exclusion areas in Geometry object; each Geometry object has now a storage for shapes (exclusion shapes, should I make them more general?)
This commit is contained in:
@@ -5119,12 +5119,17 @@ class App(QtCore.QObject):
|
||||
|
||||
for obj_active in self.collection.get_selected():
|
||||
# if the deleted object is GerberObject then make sure to delete the possible mark shapes
|
||||
if isinstance(obj_active, GerberObject):
|
||||
if obj_active.kind == 'gerber':
|
||||
for el in obj_active.mark_shapes:
|
||||
obj_active.mark_shapes[el].clear(update=True)
|
||||
obj_active.mark_shapes[el].enabled = False
|
||||
# obj_active.mark_shapes[el] = None
|
||||
del el
|
||||
# if the deleted object is GerberObject then make sure to delete the possible mark shapes
|
||||
if obj_active.kind == 'geometry':
|
||||
obj_active.exclusion_shapes.clear(update=True)
|
||||
obj_active.exclusion_shapes.enabled = False
|
||||
del obj_active.exclusion_shapes
|
||||
elif isinstance(obj_active, CNCJobObject):
|
||||
try:
|
||||
obj_active.text_col.enabled = False
|
||||
|
||||
Reference in New Issue
Block a user