From 65f087a17041efb30f5777c747ad11642d8a2a17 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 15 Nov 2006 00:03:12 +0000 Subject: [PATCH] print out compact stack traces --- direct/src/distributed/DoHierarchy.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/direct/src/distributed/DoHierarchy.py b/direct/src/distributed/DoHierarchy.py index e06572ab2e..4f66e812b1 100755 --- a/direct/src/distributed/DoHierarchy.py +++ b/direct/src/distributed/DoHierarchy.py @@ -59,6 +59,9 @@ class DoHierarchy: return r def storeObjectLocation(self, do, parentId, zoneId): + if do.__class__.__name__ == 'DistributedToon': + from direct.showbase.PythonUtil import StackTrace + print 'storeObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace().compact()) doId = do.doId if doId in self._allDoIds: self.notify.error( @@ -72,6 +75,9 @@ class DoHierarchy: do.__class__.__name__, doId, parentId, zoneId)) def deleteObjectLocation(self, do, parentId, zoneId): + if do.__class__.__name__ == 'DistributedToon': + from direct.showbase.PythonUtil import StackTrace + print 'deleteObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace().compact()) doId = do.doId if doId not in self._allDoIds: self.notify.error(