From 7936d720417c65dd37a99475105a9c4c8835bb83 Mon Sep 17 00:00:00 2001 From: Joe Shochet Date: Mon, 7 Mar 2005 18:33:17 +0000 Subject: [PATCH] no need to import inside overloaded functions now --- direct/src/ffi/FFIOverload.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/direct/src/ffi/FFIOverload.py b/direct/src/ffi/FFIOverload.py index 8de9392ad4..867097c466 100644 --- a/direct/src/ffi/FFIOverload.py +++ b/direct/src/ffi/FFIOverload.py @@ -405,14 +405,15 @@ class FFIMethodArgumentTree: indent(file, nesting+2, 'return ') methodSpec.outputOverloadedCall(file, self.classTypeDesc, 0) else: + # This is handled at the top of the file now (?) # Import a file if we need to for this typeDesc - if ((typeDesc != 0) and - (not typeDesc.isNested) and - # Do not put our own module in the import list - (self.classTypeDesc != typeDesc) and - # If this is a class (not a primitive), put it on the list - (typeDesc.__class__ == FFITypes.ClassTypeDescriptor)): - indent(file, nesting+2, 'import ' + typeDesc.foreignTypeName + '\n') + # if ((typeDesc != 0) and + # (not typeDesc.isNested) and + # # Do not put our own module in the import list + # (self.classTypeDesc != typeDesc) and + # # If this is a class (not a primitive), put it on the list + # (typeDesc.__class__ == FFITypes.ClassTypeDescriptor)): + # indent(file, nesting+2, 'import ' + typeDesc.foreignTypeName + '\n') # Specify that at least one of these trees had arguments # so we know to output an else clause