Browse Source

bandaid hack for distributedcartesiangrid

Zachary Pavlov 19 years ago
parent
commit
d5c8b6f490
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/distributed/DistributedCartesianGrid.py

+ 4 - 1
direct/src/distributed/DistributedCartesianGrid.py

@@ -115,7 +115,10 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
                 parentEvent = eventGroup.newEvent('%s.parent.removeInterest' % self.doId)
             else:
                 parentEvent = None
-            self.cr.doId2do[self.parentId].worldGrid.stopProcessVisibility(event=parentEvent)
+
+            ##HACK BANDAID FOR PVP INSTANCES
+            if(hasattr(self.cr.doId2do[self.parentId],"worldGrid")):
+                self.cr.doId2do[self.parentId].worldGrid.stopProcessVisibility(event=parentEvent)
 
     def processVisibility(self, task):
         if self.visAvatar.gameFSM.state == 'Cutscene':