From 68d8fe2f20f300b8a8eb837829f5138820b83bed Mon Sep 17 00:00:00 2001 From: Justin Butler Date: Tue, 2 May 2006 03:26:20 +0000 Subject: [PATCH] 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. --- direct/src/distributed/DoCollectionManager.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/DoCollectionManager.py b/direct/src/distributed/DoCollectionManager.py index 834588cf19..e71238cea3 100755 --- a/direct/src/distributed/DoCollectionManager.py +++ b/direct/src/distributed/DoCollectionManager.py @@ -218,8 +218,11 @@ class DoCollectionManager: if distObj is not None: 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: oldParentId = obj.parentId oldZoneId = obj.zoneId