added stack trace to unrequested delete warning

This commit is contained in:
Darren Ranalli 2004-09-08 01:03:45 +00:00
parent e49e535067
commit f110517ef6
1 changed files with 4 additions and 1 deletions

View File

@ -68,9 +68,12 @@ class DistributedObjectAI(DirectObject.DirectObject):
assert(self.notify.debug('delete(): %s' % (self.__dict__.get("doId"))))
if not self._DOAI_requestedDelete:
self.notify.warning(
DistributedObjectAI.notify.warning(
'delete() called but requestDelete never called for %s: %s'
% (self.__dict__.get('doId'), self.__class__.__name__))
from direct.showbase.PythonUtil import StackTrace
DistributedObjectAI.notify.warning(
'stack trace: %s' % StackTrace())
self._DOAI_requestedDelete = False
# Clean up all the pending barriers.