From a15be206eb1a7d3121ab027e821d5014a35472ab Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Fri, 17 Dec 2004 01:37:11 +0000 Subject: [PATCH] debug printing --- direct/src/distributed/DistributedObject.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DistributedObject.py b/direct/src/distributed/DistributedObject.py index bfaf2beb5f..129d0d5e29 100644 --- a/direct/src/distributed/DistributedObject.py +++ b/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):