- fix of Tcl command AlignDrill by Bogusz Jagoda

- small changes in FlatCAMExcellon.py file to fix milling the drill holes (due of the new changes in Geometry data structure)
This commit is contained in:
Marius Stanciu
2021-02-10 14:43:17 +02:00
committed by Marius
parent 04cae08a20
commit a68dc429e3
4 changed files with 8 additions and 4 deletions

View File

@@ -9329,7 +9329,7 @@ class MenuFileHandlers(QtCore.QObject):
return
# Check for more compatible types and add as required
if not isinstance(obj, GeometryObject):
if obj.kind != 'geometry':
msg = '[ERROR_NOTCL] %s' % _("Only Geometry objects can be used.")
msgbox = QtWidgets.QMessageBox()
msgbox.setIcon(QtWidgets.QMessageBox.Warning)
@@ -9338,7 +9338,6 @@ class MenuFileHandlers(QtCore.QObject):
bt_ok = msgbox.addButton(_('Ok'), QtWidgets.QMessageBox.AcceptRole)
msgbox.setDefaultButton(bt_ok)
msgbox.exec()
return
name = self.app.collection.get_active().options["name"]