mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
double dispatch for zone changing
This commit is contained in:
parent
4cd6824c9a
commit
b83412c44e
@ -226,7 +226,8 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
|
|||||||
assert self.notify.debug(
|
assert self.notify.debug(
|
||||||
"processVisibility: %s: changing location" %
|
"processVisibility: %s: changing location" %
|
||||||
(self.doId))
|
(self.doId))
|
||||||
self.handleAvatarZoneChange(self.visAvatar, zoneId)
|
messenger.send("avatarZoneChanged", [self.visAvatar, self.doId, zoneId])
|
||||||
|
#self.handleAvatarZoneChange(self.visAvatar, zoneId)
|
||||||
self.visDirty = False
|
self.visDirty = False
|
||||||
return Task.cont
|
return Task.cont
|
||||||
|
|
||||||
@ -239,7 +240,8 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
|
|||||||
# Figure out what zone in that island grid
|
# Figure out what zone in that island grid
|
||||||
zoneId = self.getZoneFromXYZ(pos)
|
zoneId = self.getZoneFromXYZ(pos)
|
||||||
# Do the wrtReparenting to the grid node
|
# Do the wrtReparenting to the grid node
|
||||||
self.handleAvatarZoneChange(av, zoneId)
|
messenger.send("avatarZoneChanged", [av, self.doId, zoneId])
|
||||||
|
#self.handleAvatarZoneChange(av, zoneId)
|
||||||
|
|
||||||
def removeObjectFromGrid(self, av):
|
def removeObjectFromGrid(self, av):
|
||||||
assert self.notify.debug("removeObjectFromGrid %s" % av)
|
assert self.notify.debug("removeObjectFromGrid %s" % av)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user