mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
*** empty log message ***
This commit is contained in:
parent
1dd4581082
commit
1f4adc9a97
@ -201,9 +201,14 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
doId = di.getArg(STUint32)
|
doId = di.getArg(STUint32)
|
||||||
# If it is in the dictionaries, remove it.
|
# If it is in the dictionaries, remove it.
|
||||||
if self.doId2do.has_key(doId):
|
if self.doId2do.has_key(doId):
|
||||||
|
obj = self.doId2do[doId]
|
||||||
|
# Remove it from the dictionaries
|
||||||
del(self.doId2do[doId])
|
del(self.doId2do[doId])
|
||||||
del(self.doId2cdc[doId])
|
del(self.doId2cdc[doId])
|
||||||
|
# Sanity check the dictionaries
|
||||||
assert(len(self.doId2do) == len(self.doId2cdc))
|
assert(len(self.doId2do) == len(self.doId2cdc))
|
||||||
|
# Delete the object itself
|
||||||
|
obj.delete()
|
||||||
# If it is in the cache, remove it.
|
# If it is in the cache, remove it.
|
||||||
elif self.cache.contains(doId):
|
elif self.cache.contains(doId):
|
||||||
self.cache.delete(doId)
|
self.cache.delete(doId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user