Skip to content

Commit

Permalink
fix bug: when pressing play again, only first operation was done.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaise authored and yorikvanhavre committed Oct 31, 2017
1 parent 1322bbf commit 1a7c4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathSimulatorGui.py
Expand Up @@ -85,6 +85,7 @@ def SetupSimulation(self):
form = self.taskForm.form
self.activeOps = []
self.numCommands = 0
self.ioperation = 0
for i in range(form.listOperations.count()):
if form.listOperations.item(i).checkState() == QtCore.Qt.CheckState.Checked:
self.activeOps.append(self.operations[i])
Expand Down Expand Up @@ -122,7 +123,6 @@ def SimulateMill(self):
self.job = self.jobs[self.taskForm.form.comboJobs.currentIndex()]
self.busy = False
#self.timer.start(100)
self.ioperation = 0
self.height = 10
self.skipStep = False
self.initialPos = Vector(0, 0, self.job.Stock.Shape.BoundBox.ZMax)
Expand Down

0 comments on commit 1a7c4b3

Please sign in to comment.