Browse Source

setting location

Dave Schuyler 20 years ago
parent
commit
0a4a443824
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/distributed/DistributedObject.py

+ 1 - 1
direct/src/distributed/DistributedObject.py

@@ -351,10 +351,10 @@ class DistributedObject(PandaObject):
         def setLocation(self, parentId, zoneId):
             #self.notify.info("setLocation: %s parentId: %s zoneId: %s" % (self.doId, parentId, zoneId))
             # The store must run first so we know the old location
-            #self.cr.storeObjectLocation(self.doId, parentId, zoneId)
             self.__location = (parentId, zoneId)
             self.parentId = parentId
             self.zoneId = zoneId
+            self.cr.storeObjectLocation(self.doId, parentId, zoneId)
 
             # Give the parent a chance to run code when a new child
             # sets location to it. For example, the parent may want to