From 2fc6cc336713465ddd6e27eac6aeb2275ce26c4c Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Thu, 16 Mar 2006 05:07:24 +0000 Subject: [PATCH] fixed getObjectsOfClassInZone and getDoIdList --- direct/src/distributed/DoCollectionManager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/distributed/DoCollectionManager.py b/direct/src/distributed/DoCollectionManager.py index 501bb595c0..c66742d509 100755 --- a/direct/src/distributed/DoCollectionManager.py +++ b/direct/src/distributed/DoCollectionManager.py @@ -122,9 +122,10 @@ class DoCollectionManager: r = parent.get(zoneId, []) if classType is not None: a = [] - for obj in r: + for doId in r: + obj = self.getDo(doId) if isinstance(obj, classType): - a.append(obj) + a.append(doId) r = a return r @@ -384,6 +385,5 @@ class DoCollectionManager: assert self.notify.debugStateCall(self) doDict = {} for doId in self.getDoIdList(parentId, zoneId, objClass): - if isinstance(do, objClass): - doDict[doId] = self.doId2do.get(do) + doDict[doId] = self.getDo(doId) return doDict