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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user