Browse Source

*** empty log message ***

Samir Naik 20 years ago
parent
commit
827d79bc1d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      direct/src/distributed/DistributedCartesianGrid.py

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

@@ -18,6 +18,7 @@ class DistributedCartesianGrid(DistributedNode.DistributedNode,
                                CartesianGridBase.CartesianGridBase):
                                CartesianGridBase.CartesianGridBase):
 
 
     notify = directNotify.newCategory("DistributedCartesianGrid")
     notify = directNotify.newCategory("DistributedCartesianGrid")
+    notify.setDebug(0)
 
 
     VisualizeGrid = config.GetBool("visualize-cartesian-grid", 0)
     VisualizeGrid = config.GetBool("visualize-cartesian-grid", 0)
 
 
@@ -137,6 +138,7 @@ class DistributedCartesianGrid(DistributedNode.DistributedNode,
     # Take an avatar (or other object) from somewhere in the world and
     # Take an avatar (or other object) from somewhere in the world and
     # wrtReparent him to the grid.
     # wrtReparent him to the grid.
     def addObjectToGrid(self, av):
     def addObjectToGrid(self, av):
+        self.notify.debug("addObjectToGrid %s" % av)
         # Get our pos relative to the island grid
         # Get our pos relative to the island grid
         pos = av.getPos(self)
         pos = av.getPos(self)
         # Figure out what zone in that island grid
         # Figure out what zone in that island grid
@@ -145,6 +147,7 @@ class DistributedCartesianGrid(DistributedNode.DistributedNode,
         self.handleAvatarZoneChange(av, zoneId)
         self.handleAvatarZoneChange(av, zoneId)
 
 
     def removeObjectFromGrid(self, av):
     def removeObjectFromGrid(self, av):
+        self.notify.debug("removeObjectFromGrid %s" % av)
         # TODO: WHAT LOCATION SHOULD WE SET THIS TO?
         # TODO: WHAT LOCATION SHOULD WE SET THIS TO?
         #av.reparentTo(hidden)
         #av.reparentTo(hidden)
         if (av.getParent().compareTo(self) == 0):
         if (av.getParent().compareTo(self) == 0):