Browse Source

more grid parent cleanup

Joe Shochet 20 years ago
parent
commit
67613e4278
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/distributed/DistributedNode.py

+ 4 - 0
direct/src/distributed/DistributedNode.py

@@ -56,6 +56,10 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath):
                 if self.gridParent:
                     self.gridParent.delete()
                     self.gridParent = None                    
+        else:
+            if self.gridParent:
+                self.gridParent.delete()
+                self.gridParent = None
             
     def __cmp__(self, other):
         # DistributedNode inherits from NodePath, which inherits a