Merge pull request #3969 from sliptonic/bug/bugfixes

[PATH]  Minor bugfixes
This commit is contained in:
sliptonic
2020-10-26 08:12:20 -05:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ class ObjectDeburr(PathEngraveBase.ObjectOp):
# obj.Side = side[0]
# Set direction of op
forward = (obj.Direction == 'CCW')
forward = (obj.Direction == 'CW')
zValues = []
z = 0

View File

@@ -102,6 +102,8 @@ class ObjectDressup:
try:
pointlist = []
for line in f1.readlines():
if line == '\n':
continue
w = line.split()
xval = round(float(w[0]), 2)
yval = round(float(w[1]), 2)
@@ -249,7 +251,7 @@ class TaskPanel:
self.form.SetProbePointFileName.clicked.connect(self.SetProbePointFileName)
def SetProbePointFileName(self):
filename = QtGui.QFileDialog.getSaveFileName(self.form, translate("Path_Probe", "Select Probe Point File"), None, translate("Path_Probe", "All Files (*.*)"))
filename = QtGui.QFileDialog.getOpenFileName(self.form, translate("Path_Probe", "Select Probe Point File"), None, translate("Path_Probe", "All Files (*.*)"))
if filename and filename[0]:
self.obj.probefile = str(filename[0])
self.setFields()