Browse Source

*** empty log message ***

Jesse Schell 25 years ago
parent
commit
071e23c07f
1 changed files with 11 additions and 6 deletions
  1. 11 6
      direct/src/distributed/ClientDistUpdate.py

+ 11 - 6
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):