From cf8a0ee65d5c46a35a1313af9df3731ac1949bc2 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Wed, 11 May 2005 01:08:38 +0000 Subject: [PATCH] name the cell origins --- direct/src/distributed/GridParent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/distributed/GridParent.py b/direct/src/distributed/GridParent.py index f5490700c1..fdf9f13681 100755 --- a/direct/src/distributed/GridParent.py +++ b/direct/src/distributed/GridParent.py @@ -24,6 +24,8 @@ class GridParent: # to the new node, set it's position to the new grid cell origin. self.av = av self.grid = None + # NOTE: this node gets renamed when it is put on a zone, so if you + # are looking for it by name, try cellOrigin*. self.cellOrigin = NodePath("cellOrigin") def delete(self): @@ -62,6 +64,8 @@ class GridParent: # Set the gridNode's position self.cellOrigin.setPos(*cellPos) + # For readability when debugging, append the zone to the name + self.cellOrigin.setName("cellOrigin-%s" % (zoneId)) # Reparent our avatar to this node if not teleport: