mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
added getOwnerViewDoList, getOwnerViewDoIdList
This commit is contained in:
parent
aa20bc165d
commit
8d01e31524
@ -111,6 +111,22 @@ class DoCollectionManager:
|
||||
r = a
|
||||
return r
|
||||
|
||||
def getOwnerViewDoList(self, classType):
|
||||
assert self.hasOwnerView()
|
||||
l = []
|
||||
for obj in self.doId2ownerView.values():
|
||||
if isinstance(obj, classType):
|
||||
l.append(obj)
|
||||
return l
|
||||
|
||||
def getOwnerViewDoIdList(self, classType):
|
||||
assert self.hasOwnerView()
|
||||
l = []
|
||||
for doId, obj in self.doId2ownerView.items():
|
||||
if isinstance(obj, classType):
|
||||
l.append(doId)
|
||||
return l
|
||||
|
||||
def countObjects(self, classType):
|
||||
"""
|
||||
Counts the number of objects of the given type in the
|
||||
|
Loading…
x
Reference in New Issue
Block a user