Allow deletion of dressup even if model is not setup correctly.
This commit is contained in:
@@ -654,10 +654,12 @@ class ViewProviderDressup:
|
||||
'''this makes sure that the base operation is added back to the project and visible'''
|
||||
# pylint: disable=unused-argument
|
||||
PathLog.debug("Deleting Dressup")
|
||||
FreeCADGui.ActiveDocument.getObject(arg1.Object.Base.Name).Visibility = True
|
||||
job = PathUtils.findParentJob(self.obj)
|
||||
job.Proxy.addOperation(arg1.Object.Base, arg1.Object)
|
||||
arg1.Object.Base = None
|
||||
if arg1.Object and arg1.Object.Base:
|
||||
FreeCADGui.ActiveDocument.getObject(arg1.Object.Base.Name).Visibility = True
|
||||
job = PathUtils.findParentJob(self.obj)
|
||||
if job:
|
||||
job.Proxy.addOperation(arg1.Object.Base, arg1.Object)
|
||||
arg1.Object.Base = None
|
||||
return True
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
Reference in New Issue
Block a user