mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
changed getLocation to parentId and zoneId
This commit is contained in:
parent
ffe2195d2a
commit
8997069d51
@ -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()
|
parentId = self.visAvatar.parentId
|
||||||
assert self.notify.debug("processVisibility: %s: parentId: %s oldZoneId: %s" %
|
oldZoneId = self.visAvatar.zoneId
|
||||||
(self.doId, parentId, oldZoneId))
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user