Browse Source

debug prints to track down leaked Toon storeObjectLocation

Darren Ranalli 19 years ago
parent
commit
98b25b8a6d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      direct/src/distributed/DoHierarchy.py

+ 6 - 0
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' % StackTrace()
         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' % StackTrace()
         doId = do.doId
         if doId not in self._allDoIds:
             self.notify.error(