Răsfoiți Sursa

added toon debugging: doId & location

Darren Ranalli 19 ani în urmă
părinte
comite
3bbfc2e34c
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      direct/src/distributed/DoHierarchy.py

+ 2 - 2
direct/src/distributed/DoHierarchy.py

@@ -61,7 +61,7 @@ class DoHierarchy:
     def storeObjectLocation(self, do, parentId, zoneId):
         if do.__class__.__name__ == 'DistributedToon':
             from direct.showbase.PythonUtil import StackTrace
-            print 'storeObjectLocation(DistributedToon): %s' % StackTrace()
+            print 'storeObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace())
         doId = do.doId
         if doId in self._allDoIds:
             self.notify.error(
@@ -77,7 +77,7 @@ class DoHierarchy:
     def deleteObjectLocation(self, do, parentId, zoneId):
         if do.__class__.__name__ == 'DistributedToon':
             from direct.showbase.PythonUtil import StackTrace
-            print 'deleteObjectLocation(DistributedToon): %s' % StackTrace()
+            print 'deleteObjectLocation(DistributedToon %s)(%s, %s): %s' % (do.doId, parentId, zoneId, StackTrace())
         doId = do.doId
         if doId not in self._allDoIds:
             self.notify.error(