소스 검색

added toon debugging: doId & location

Darren Ranalli 19 년 전
부모
커밋
3bbfc2e34c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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(