Skip to content

Commit 1d4dde9

Browse files
committed
qtplasmac: add missing globals to gcode filter
1 parent a21d300 commit 1d4dde9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/emc/usr_intf/qtplasmac/qtplasmac_gcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def get_hole_diameter(I, J, isHole):
314314

315315
# turn torch off and move 4mm (0.157) past hole end
316316
def 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
580580
def 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
623623
def 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

Comments
 (0)