diff --git a/PartOMagic/Features/Ghost.py b/PartOMagic/Features/Ghost.py index dff80ab..4c5ff54 100644 --- a/PartOMagic/Features/Ghost.py +++ b/PartOMagic/Features/Ghost.py @@ -56,6 +56,8 @@ def addMissingProperties(self, selfobj): def updateDeps(self, selfobj, check_only = False): """update PlacementLinks to match with container path""" + if selfobj.Base is None: # fixes error on ghots deletion + return toleave,toenter = Containers.getContainerRelativePath(Containers.getContainer(selfobj.Base), Containers.getContainer(selfobj)) leave_deps = [] if selfobj.UseForwardPlacements: