Переглянути джерело

Do not ignore the name requested by the caller.

Adam Coddington 4 роки тому
батько
коміт
bd40265bf4
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      appObjects/FlatCAMExcellon.py

+ 3 - 3
appObjects/FlatCAMExcellon.py

@@ -964,7 +964,7 @@ class ExcellonObject(FlatCAMObj, Excellon):
             tools = self.get_selected_tools_list()
 
         if outname is None:
-            outname = self.options["name"] + "_mill"
+            outname = self.options["name"] + "_slot"
 
         if tooldia is None:
             tooldia = float(self.options["slot_tooldia"])
@@ -1038,7 +1038,7 @@ class ExcellonObject(FlatCAMObj, Excellon):
 
         if use_thread:
             def geo_thread(a_obj):
-                a_obj.app_obj.new_object("geometry", outname + '_slot', geo_init, plot=plot)
+                a_obj.app_obj.new_object("geometry", outname, geo_init, plot=plot)
 
             # Create a promise with the new name
             self.app.collection.promise(outname)
@@ -1046,7 +1046,7 @@ class ExcellonObject(FlatCAMObj, Excellon):
             # Send to worker
             self.app.worker_task.emit({'fcn': geo_thread, 'params': [self.app]})
         else:
-            self.app.app_obj.new_object("geometry", outname + '_slot', geo_init, plot=plot)
+            self.app.app_obj.new_object("geometry", outname, geo_init, plot=plot)
 
         return True, ""