From 6f4b1983725b5ccd8ecb7ca9a1526ef9fee64f6b Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 26 May 2005 21:23:22 +0000 Subject: [PATCH] setting parentId and zoneId --- direct/src/distributed/DistributedObject.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/distributed/DistributedObject.py b/direct/src/distributed/DistributedObject.py index cee326e166..95e60ce1b8 100644 --- a/direct/src/distributed/DistributedObject.py +++ b/direct/src/distributed/DistributedObject.py @@ -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.