Browse Source

debug printing

Dave Schuyler 21 years ago
parent
commit
a15be206eb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      direct/src/distributed/DistributedObject.py

+ 3 - 1
direct/src/distributed/DistributedObject.py

@@ -25,6 +25,7 @@ class DistributedObject(PandaObject):
     neverDisable = 0
 
     def __init__(self, cr):
+        assert self.notify.debugStateCall(self)
         try:
             self.DistributedObject_initialized
         except:
@@ -162,6 +163,7 @@ class DistributedObject(PandaObject):
         Returns true if the object has been fully generated by now,
         and not yet disabled.
         """
+        assert self.notify.debugStateCall(self)
         return (self.activeState == ESGenerated)
 
     def delete(self):
@@ -179,7 +181,7 @@ class DistributedObject(PandaObject):
         """
         Inheritors should redefine this to take appropriate action on generate
         """
-        assert(self.notify.debug('generate()'))
+        assert self.notify.debugStateCall(self)
         self.activeState = ESGenerating
 
     def generateInit(self):