Support for mirroring Geometry Objects from the shell. See #119.
This commit is contained in:
parent
9f138bdcc2
commit
ee8e9f8f4b
|
@ -2631,8 +2631,10 @@ class App(QtCore.QObject):
|
||||||
if obj is None:
|
if obj is None:
|
||||||
return "Object not found: %s" % name
|
return "Object not found: %s" % name
|
||||||
|
|
||||||
if not isinstance(obj, FlatCAMGerber) and not isinstance(obj, FlatCAMExcellon):
|
if not isinstance(obj, FlatCAMGerber) and \
|
||||||
return "ERROR: Only Gerber and Excellon objects can be mirrored."
|
not isinstance(obj, FlatCAMExcellon) and \
|
||||||
|
not isinstance(obj, FlatCAMGeometry):
|
||||||
|
return "ERROR: Only Gerber, Excellon and Geometry objects can be mirrored."
|
||||||
|
|
||||||
# Axis
|
# Axis
|
||||||
try:
|
try:
|
||||||
|
@ -2692,7 +2694,6 @@ class App(QtCore.QObject):
|
||||||
return 'Unknown parameter: %s' % key
|
return 'Unknown parameter: %s' % key
|
||||||
kwa[key] = types[key](kwa[key])
|
kwa[key] = types[key](kwa[key])
|
||||||
|
|
||||||
|
|
||||||
if 'columns' not in kwa or 'rows' not in kwa:
|
if 'columns' not in kwa or 'rows' not in kwa:
|
||||||
return "ERROR: Specify -columns and -rows"
|
return "ERROR: Specify -columns and -rows"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue