Explorar o código

allow use aligndrill also for geometries

Kamil Sopko %!s(int64=10) %!d(string=hai) anos
pai
achega
1d663c4efe
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      FlatCAMApp.py

+ 2 - 3
FlatCAMApp.py

@@ -2263,9 +2263,8 @@ class App(QtCore.QObject):
             if obj is None:
                 return "Object not found: %s" % name
 
-            if not isinstance(obj, FlatCAMGerber) and not isinstance(obj, FlatCAMExcellon):
-                return "ERROR: Only Gerber and Excellon objects can be used."
-
+            if not isinstance(obj, FlatCAMGeometry) and not isinstance(obj, FlatCAMGerber) and not isinstance(obj, FlatCAMExcellon):
+                return "ERROR: Only Gerber, Geometry and Excellon objects can be used."
 
             # Axis
             try: