From ee8e9f8f4b7dcced3b0ca2f7ed6461276c2d42ee Mon Sep 17 00:00:00 2001 From: Juan Pablo Caram Date: Sat, 4 Jun 2016 23:04:22 -0400 Subject: [PATCH] Support for mirroring Geometry Objects from the shell. See #119. --- FlatCAMApp.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 028fbfd3..346cd80e 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -2631,8 +2631,10 @@ 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 mirrored." + if not isinstance(obj, FlatCAMGerber) and \ + not isinstance(obj, FlatCAMExcellon) and \ + not isinstance(obj, FlatCAMGeometry): + return "ERROR: Only Gerber, Excellon and Geometry objects can be mirrored." # Axis try: @@ -2692,7 +2694,6 @@ class App(QtCore.QObject): return 'Unknown parameter: %s' % key kwa[key] = types[key](kwa[key]) - if 'columns' not in kwa or 'rows' not in kwa: return "ERROR: Specify -columns and -rows"