Change visibility of base object and stock while an operation is edited - helps a lot in making sense of the generated paths.

This commit is contained in:
Markus Lampert
2017-09-25 21:52:49 -07:00
parent 459890f779
commit ca2c8fe156
2 changed files with 15 additions and 3 deletions

View File

@@ -103,10 +103,18 @@ class ViewProvider(object):
FreeCADGui.Control.closeDialog()
FreeCADGui.Control.showDialog(panel)
panel.setupUi()
job = self.Object.Proxy.getJob(self.Object)
if job:
job.ViewObject.Proxy.setupEditVisibility(job)
else:
PathLog.info("did not find no job")
def clearTaskPanel(self):
'''clearTaskPanel() ... internal callback function when editing has finished.'''
self.panel = None
job = self.Object.Proxy.getJob(self.Object)
if job:
job.ViewObject.Proxy.resetEditVisibility(job)
def unsetEdit(self, arg1, arg2):
if self.panel: