Skip to content

Commit

Permalink
Fix AttributeError on deleting corrupt dressup
Browse files Browse the repository at this point in the history
  • Loading branch information
kbickar committed Jan 18, 2021
1 parent bf221af commit ab8a4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/PathScripts/PathDressupTagGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def onDelete(self, arg1=None, arg2=None):
'''this makes sure that the base operation is added back to the job and visible'''
# pylint: disable=unused-argument
PathLog.track()
if self.obj.Base.ViewObject:
if self.obj.Base and self.obj.Base.ViewObject:
self.obj.Base.ViewObject.Visibility = True
job = PathUtils.findParentJob(self.obj)
if arg1.Object and arg1.Object.Base and job:
Expand Down

0 comments on commit ab8a4a6

Please sign in to comment.