@@ -314,7 +314,7 @@ def get_hole_diameter(I, J, isHole):
314314
315315# turn torch off and move 4mm (0.157) past hole end
316316def overburn (I , J , radius ):
317- global lineNum , lineNumOrg , errorLines , lastX , lastY , torchEnable , ocLength , warnCompTorch , arcDistMode , oBurnX , oBurnY
317+ global lineNum , lineNumOrg , errorLines , lastX , lastY , torchEnable , ocLength , warnCompTorch , arcDistMode , oBurnX , oBurnY , codeWarn
318318 centerX = lastX + I
319319 centerY = lastY + J
320320 cosA = math .cos (ocLength / radius )
@@ -578,7 +578,7 @@ def check_material_edit():
578578
579579# write temporary materials file
580580def write_temporary_material (data ):
581- global lineNum , lineNumOrg , errorLines , errorTempMat , warnMatLoad , material , codeError
581+ global lineNum , lineNumOrg , errorLines , errorTempMat , warnMatLoad , material , codeError , codeWarn
582582 try :
583583 with open (tmpMaterialFile , 'w' ) as fWrite :
584584 if gui == 'plasmac' :
@@ -621,7 +621,7 @@ def write_temporary_material(data):
621621
622622# rewrite the material file
623623def rewrite_material_file (newMaterial ):
624- global lineNum , warnMatLoad , errorLines
624+ global lineNum , warnMatLoad , errorLines , codeWarn
625625 copyFile = '{}.bkp' .format (materialFile )
626626 shutil .copy (materialFile , copyFile )
627627 inFile = open (copyFile , 'r' )
0 commit comments