Browse Source

fixed doHeirarchy

Darren Ranalli 20 years ago
parent
commit
4ee8b0a07f

+ 2 - 0
direct/src/distributed/DistributedObject.py

@@ -193,6 +193,8 @@ class DistributedObject(PandaObject):
         """
         assert self.notify.debugStateCall(self)
         self.activeState = ESGenerating
+        # this has already been set at this point
+        #self.cr.storeObjectLocation(self.doId, self.parentId, self.zoneId)
 
     def generateInit(self):
         """

+ 1 - 0
direct/src/distributed/DistributedObjectAI.py

@@ -355,6 +355,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
         other networked info in this function.
         """
         assert self.notify.debugStateCall(self)
+        self.air.storeObjectLocation(self.doId, self.parentId, self.zoneId)
 
     if wantOtpServer:
         def generateInit(self, repository=None):