Skip to content

Commit b05758e

Browse files
committed
Ghost: fix #67 error upon deleting a ghost
1 parent def5558 commit b05758e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PartOMagic/Features/Ghost.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def addMissingProperties(self, selfobj):
5656

5757
def updateDeps(self, selfobj, check_only = False):
5858
"""update PlacementLinks to match with container path"""
59+
if selfobj.Base is None: # fixes error on ghots deletion
60+
return
5961
toleave,toenter = Containers.getContainerRelativePath(Containers.getContainer(selfobj.Base), Containers.getContainer(selfobj))
6062
leave_deps = []
6163
if selfobj.UseForwardPlacements:

0 commit comments

Comments
 (0)