Pārlūkot izejas kodu

don't do a setLocation to 0,0 when removingObjectFromGrid

Samir Naik 20 gadi atpakaļ
vecāks
revīzija
7b4b700765
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      direct/src/distributed/DistributedCartesianGrid.py

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

@@ -137,8 +137,9 @@ class DistributedCartesianGrid(DistributedNode.DistributedNode,
 
     def removeObjectFromGrid(self, av):
         # TODO: WHAT LOCATION SHOULD WE SET THIS TO?
-        av.reparentTo(hidden)
-        av.b_setLocation(0,0)
+        #av.reparentTo(hidden)
+        av.detachNode()
+        #av.b_setLocation(0,0)
         
         
     def handleAvatarZoneChange(self, av, zoneId):