setting parentId and zoneId

This commit is contained in:
Dave Schuyler 2005-05-26 21:23:22 +00:00
parent 77831d02f1
commit 6f4b198372
1 changed files with 3 additions and 0 deletions

View File

@ -353,6 +353,9 @@ class DistributedObject(PandaObject):
# The store must run first so we know the old location
#self.cr.storeObjectLocation(self.doId, parentId, zoneId)
self.__location = (parentId, zoneId)
# init the parentId and zoneId
self.parentId = parentId
self.zoneId = zoneId
# Give the parent a chance to run code when a new child
# sets location to it. For example, the parent may want to
# scene graph reparent the child to some subnode it owns.