Commit 84693f98 authored by Lars Kruse's avatar Lars Kruse

simulation: use selected toolpath instead of the first one in the list

parent 31c4d85e
......@@ -87,7 +87,7 @@ class ToolpathSimulation(pycam.Plugins.PluginBase):
def _start_simulation(self, widget=None):
if self._running is None:
# initial start of simulation (not just continuing)
toolpaths = self.core.get("toolpaths")
toolpaths = self.core.get("toolpaths").get_selected()
if not toolpaths:
# this should not happen
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment