浏览代码

fix problem with DisplayRegion scoping

David Rose 17 年之前
父节点
当前提交
c4b5f64eea
共有 1 个文件被更改,包括 1 次插入2 次删除
  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....
     // IE a should actualy generate code for this objects....
    CPPType *base_type = resolve_type(unwrap(in_type));
    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 true;
 
 
     return false;
     return false;