From d5c8b6f490d398eaffcd377fc9d5afd733c4caa2 Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Mon, 12 Feb 2007 00:19:57 +0000 Subject: [PATCH] bandaid hack for distributedcartesiangrid --- direct/src/distributed/DistributedCartesianGrid.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DistributedCartesianGrid.py b/direct/src/distributed/DistributedCartesianGrid.py index f82c5d8e11..1b8445b003 100755 --- a/direct/src/distributed/DistributedCartesianGrid.py +++ b/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':