From 94f2808cb9c9e5515ca29b3e39bcc6b633302c0f Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Wed, 8 Jun 2005 23:28:43 +0000 Subject: [PATCH] setting parentId --- direct/src/distributed/DistributedObjectAI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/DistributedObjectAI.py b/direct/src/distributed/DistributedObjectAI.py index d5bb52a8e6..3cc1baf3b5 100644 --- a/direct/src/distributed/DistributedObjectAI.py +++ b/direct/src/distributed/DistributedObjectAI.py @@ -154,6 +154,7 @@ class DistributedObjectAI(DirectObject.DirectObject): oldZoneId = self.zoneId if ((oldParentId != parentId) or (oldZoneId != zoneId)): + #print "%s location is now %s, %s (%s)"%(self.doId, parentId, zoneId, self) self.zoneId = zoneId self.parentId = parentId self.air.changeDOZoneInTables(self, parentId, zoneId, oldParentId, oldZoneId) @@ -355,8 +356,7 @@ class DistributedObjectAI(DirectObject.DirectObject): other networked info in this function. """ assert self.notify.debugStateCall(self) - # we don't always have a parentId, e.g. DistributedAvatarManagerAI - #self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId) + self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId) if wantOtpServer: def generateInit(self, repository=None):