Browse Source

Added fix to be able to give an object to store location for in case the object has already been removed from the doId2do list.

Justin Butler 19 years ago
parent
commit
68d8fe2f20
1 changed files with 5 additions and 2 deletions
  1. 5 2
      direct/src/distributed/DoCollectionManager.py

+ 5 - 2
direct/src/distributed/DoCollectionManager.py

@@ -218,8 +218,11 @@ class DoCollectionManager:
         if distObj is not None:
         if distObj is not None:
             distObj.setLocation(parentId, zoneId)
             distObj.setLocation(parentId, zoneId)
 
 
-    def storeObjectLocation(self, doId, parentId, zoneId):
-        obj = self.doId2do.get(doId)
+    def storeObjectLocation(self, doId, parentId, zoneId, object=None):
+        if (object == None):
+            obj = self.doId2do.get(doId)
+        else:
+            obj = object
         if obj is not None:
         if obj is not None:
             oldParentId = obj.parentId
             oldParentId = obj.parentId
             oldZoneId = obj.zoneId
             oldZoneId = obj.zoneId