mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
previous checkin, causes a new crash on calling delete multiple times, this fixes that
This commit is contained in:
parent
4f4dc15937
commit
c282655222
@ -122,14 +122,15 @@ class DistributedObjectAI(DirectObject):
|
|||||||
barrier.cleanup()
|
barrier.cleanup()
|
||||||
self.__barriers = {}
|
self.__barriers = {}
|
||||||
|
|
||||||
if not hasattr(self, "doNotDeallocateChannel"):
|
# Asad: As per Roger's suggestion, turn off the following block until a solution is
|
||||||
if self.air:
|
|
||||||
self.air.deallocateChannel(self.doId)
|
|
||||||
# Asad: As per Roger's suggestion, turn off the following line until a solution is
|
|
||||||
# Thought out of how to prevent this delete message or to handle this message better
|
# Thought out of how to prevent this delete message or to handle this message better
|
||||||
#self.air = None
|
## if not hasattr(self, "doNotDeallocateChannel"):
|
||||||
|
## if self.air:
|
||||||
|
## self.air.deallocateChannel(self.doId)
|
||||||
|
## self.air = None
|
||||||
if hasattr(self, 'parentId'):
|
if hasattr(self, 'parentId'):
|
||||||
del self.parentId
|
del self.parentId
|
||||||
|
if hasattr(self, 'zoneId'):
|
||||||
del self.zoneId
|
del self.zoneId
|
||||||
self.__generated = False
|
self.__generated = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user