mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
commented out unrequested delete logging
This commit is contained in:
parent
735c45d8b4
commit
462be7f63b
@ -68,12 +68,23 @@ class DistributedObjectAI(DirectObject.DirectObject):
|
|||||||
assert(self.notify.debug('delete(): %s' % (self.__dict__.get("doId"))))
|
assert(self.notify.debug('delete(): %s' % (self.__dict__.get("doId"))))
|
||||||
|
|
||||||
if not self._DOAI_requestedDelete:
|
if not self._DOAI_requestedDelete:
|
||||||
|
# this logs every delete that was not requested by us.
|
||||||
|
# TODO: this currently prints warnings for deletes of objects
|
||||||
|
# that we did not create. We need to add a 'locally created'
|
||||||
|
# flag to every object to filter these out.
|
||||||
|
"""
|
||||||
DistributedObjectAI.notify.warning(
|
DistributedObjectAI.notify.warning(
|
||||||
'delete() called but requestDelete never called for %s: %s'
|
'delete() called but requestDelete never called for %s: %s'
|
||||||
% (self.__dict__.get('doId'), self.__class__.__name__))
|
% (self.__dict__.get('doId'), self.__class__.__name__))
|
||||||
|
"""
|
||||||
|
"""
|
||||||
|
# print a stack trace so we can detect whether this is the
|
||||||
|
# result of a network msg.
|
||||||
|
# this is slow.
|
||||||
from direct.showbase.PythonUtil import StackTrace
|
from direct.showbase.PythonUtil import StackTrace
|
||||||
DistributedObjectAI.notify.warning(
|
DistributedObjectAI.notify.warning(
|
||||||
'stack trace: %s' % StackTrace())
|
'stack trace: %s' % StackTrace())
|
||||||
|
"""
|
||||||
self._DOAI_requestedDelete = False
|
self._DOAI_requestedDelete = False
|
||||||
|
|
||||||
# Clean up all the pending barriers.
|
# Clean up all the pending barriers.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user