added toon debugging: doId & location

This commit is contained in:
Darren Ranalli 2006-11-13 19:30:53 +00:00
parent 6f21efb679
commit 3bbfc2e34c

View File

@ -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(