Browse Source

fix problem with DisplayRegion scoping

David Rose 17 years ago
parent
commit
c4b5f64eea
1 changed files with 1 additions and 2 deletions
  1. 1 2
      dtool/src/interrogate/typeManager.cxx

+ 1 - 2
dtool/src/interrogate/typeManager.cxx

@@ -1671,8 +1671,7 @@ bool TypeManager::IsLocal(CPPType *in_type)
     // IE a should actualy generate code for this objects....
    CPPType *base_type = resolve_type(unwrap(in_type));
 
-
-   if(base_type->_file._source == CPPFile::S_local)
+   if(base_type->_file._source == CPPFile::S_local && !base_type->is_incomplete())
        return true;
 
     return false;