Commit 431618e7 authored by sumpfralle's avatar sumpfralle

fixed a useless update of the 3D view when toggling the visibility state of a toolpath


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1000 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 24656b3f
......@@ -3253,20 +3253,24 @@ class ProjectGui:
# hide/show toolpaths according to the new setting
self.update_view()
elif action == "simulate":
index = self._treeview_get_active_index(self.toolpath_table, self.toolpath)
index = self._treeview_get_active_index(self.toolpath_table,
self.toolpath)
if not index is None:
self.show_toolpath_simulation(self.toolpath[index])
elif action == "crop":
index = self._treeview_get_active_index(self.toolpath_table, self.toolpath)
index = self._treeview_get_active_index(self.toolpath_table,
self.toolpath)
if not index is None:
self.crop_toolpath(self.toolpath[index])
elif action == "grid":
index = self._treeview_get_active_index(self.toolpath_table, self.toolpath)
index = self._treeview_get_active_index(self.toolpath_table,
self.toolpath)
if not index is None:
self.create_toolpath_grid(self.toolpath[index])
# process the default operations (move, delete)
self._treeview_button_event(self.toolpath_table, self.toolpath, action,
self.update_toolpath_table)
else:
# process the default operations (move, delete)
self._treeview_button_event(self.toolpath_table, self.toolpath,
action, self.update_toolpath_table)
# do some post-processing ...
if action in ("delete", "crop", "grid"):
self.update_view()
......
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