Browse Source

changed getLocation to parentId and zoneId

Dave Schuyler 20 years ago
parent
commit
8997069d51
1 changed files with 5 additions and 3 deletions
  1. 5 3
      direct/src/distributed/DistributedCartesianGrid.py

+ 5 - 3
direct/src/distributed/DistributedCartesianGrid.py

@@ -119,9 +119,11 @@ class DistributedCartesianGrid(DistributedNode.DistributedNode,
                                          (self.doId, zoneId))
                                          (self.doId, zoneId))
                 self.cr.alterInterest(self.visContext, self.getDoId(), self.visZone)
                 self.cr.alterInterest(self.visContext, self.getDoId(), self.visZone)
                 # If the visAvatar is parented to this grid, also do a setLocation
                 # If the visAvatar is parented to this grid, also do a setLocation
-                parentId, oldZoneId = self.visAvatar.getLocation()
-                assert self.notify.debug("processVisibility: %s: parentId: %s oldZoneId: %s" %
-                                         (self.doId, parentId, oldZoneId))
+                parentId = self.visAvatar.parentId
+                oldZoneId = self.visAvatar.zoneId
+                assert self.notify.debug(
+                    "processVisibility: %s: parentId: %s oldZoneId: %s" %
+                    (self.doId, parentId, oldZoneId))
                 if parentId == self.doId:
                 if parentId == self.doId:
                     assert self.notify.debug("processVisibility: %s: changing location" % (self.doId))
                     assert self.notify.debug("processVisibility: %s: changing location" % (self.doId))
                     self.handleAvatarZoneChange(self.visAvatar, zoneId)
                     self.handleAvatarZoneChange(self.visAvatar, zoneId)