diff --git a/direct/src/distributed/ClientDistUpdate.py b/direct/src/distributed/ClientDistUpdate.py index 17d2f32147..19ffe3fe65 100644 --- a/direct/src/distributed/ClientDistUpdate.py +++ b/direct/src/distributed/ClientDistUpdate.py @@ -41,12 +41,17 @@ class ClientDistUpdate: # Look up the function #assert(aClass.__dict__.has_key(self.name)) #func = aClass.__dict__[self.name] - func = eval(cdc.name + "." + cdc.name + "." + self.name) - print("Calling: " + cdc.name + "." + cdc.name + "." + self.name) - # Get the arguments into a list - args = self.extractArgs(di) - # Apply the function to the object with the arguments - apply(func, [do] + args) + + # HACK HACK HACK HACK!!!!! + try: + do.LocalToon_initialized + except: + func = eval(cdc.name + "." + cdc.name + "." + self.name) + print("Calling: " + cdc.name + "." + cdc.name + "." + self.name) + # Get the arguments into a list + args = self.extractArgs(di) + # Apply the function to the object with the arguments + apply(func, [do] + args) return None def extractArgs(self, di):