Browse Source

*** empty log message ***

Joe Shochet 24 years ago
parent
commit
711497978e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      direct/src/ffi/FFIExternalObject.py

+ 1 - 5
direct/src/ffi/FFIExternalObject.py

@@ -98,11 +98,7 @@ class FFIExternalObject:
     def setPointer(self):
     def setPointer(self):
         # See what type it really is and downcast to that type (if necessary)
         # See what type it really is and downcast to that type (if necessary)
         # Look up the TypeHandle in the dict. get() returns None if it is not there
         # Look up the TypeHandle in the dict. get() returns None if it is not there
-        try:
-            index = self.getTypeIndex()
-        except:
-            # Remove this after everybody builds their panda
-            index = self.getType().getIndex()
+        index = self.getTypeIndex()
         exactWrapperClass = WrapperClassMap.get(index)
         exactWrapperClass = WrapperClassMap.get(index)
         # We do not need to downcast if we already have the same class
         # We do not need to downcast if we already have the same class
         if (exactWrapperClass and (exactWrapperClass != self.__class__)):
         if (exactWrapperClass and (exactWrapperClass != self.__class__)):