mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
don't report invalid derivations
This commit is contained in:
parent
7782d86901
commit
21ff872027
@ -2040,6 +2040,10 @@ define_struct_type(InterrogateType &itype, CPPStructType *cpptype,
|
|||||||
CPPType *base_type = TypeManager::resolve_type(base._base, scope);
|
CPPType *base_type = TypeManager::resolve_type(base._base, scope);
|
||||||
TypeIndex base_index = get_type(base_type, true);
|
TypeIndex base_index = get_type(base_type, true);
|
||||||
|
|
||||||
|
if (base_index == 0) {
|
||||||
|
nout << *cpptype << " reports a derivation from an invalid type.\n";
|
||||||
|
|
||||||
|
} else {
|
||||||
InterrogateType::Derivation d;
|
InterrogateType::Derivation d;
|
||||||
d._flags = 0;
|
d._flags = 0;
|
||||||
d._base = base_index;
|
d._base = base_index;
|
||||||
@ -2083,6 +2087,7 @@ define_struct_type(InterrogateType &itype, CPPStructType *cpptype,
|
|||||||
itype._derivations.push_back(d);
|
itype._derivations.push_back(d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CPPScope::Declarations::const_iterator di;
|
CPPScope::Declarations::const_iterator di;
|
||||||
for (di = scope->_declarations.begin();
|
for (di = scope->_declarations.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user