Misc fixes to TCL glue

This commit is contained in:
Eric Varsanyi
2019-11-18 11:45:40 -06:00
parent 9a46f3045e
commit b13d238070
5 changed files with 5 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ class TclCommandOpenGerber(TclCommandSignaled):
# How the object should be initialized
def obj_init(gerber_obj, app_obj):
if not isinstance(gerber_obj, Geometry):
if not isinstance(gerber_obj, FlatCAMGerber):
self.raise_tcl_error('Expected FlatCAMGerber, got %s %s.' % (outname, type(gerber_obj)))
# Opening the file happens here