diff --git a/dtool/src/interrogate/typeManager.cxx b/dtool/src/interrogate/typeManager.cxx index 0f4d1f6130..04de4cac66 100644 --- a/dtool/src/interrogate/typeManager.cxx +++ b/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;