mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
interrogatedb: fix library name setting for typedefs
Typedefs are evidently always considered "fully defined", so we need to add another condition to the database merging code to prefer the type that is marked "global" when merging two types.
This commit is contained in:
parent
fa231664bd
commit
162b86c6d9
@ -112,14 +112,16 @@ operator = (const InterrogateType ©) {
|
||||
|
||||
/**
|
||||
* Combines type with the other similar definition. If one type is "fully
|
||||
* defined" and the other one isn't, the fully-defined type wins.
|
||||
* defined" and the other one isn't, the fully-defined type wins. If both
|
||||
* types are fully defined, whichever type is marked "global" wins.
|
||||
*/
|
||||
void InterrogateType::
|
||||
merge_with(const InterrogateType &other) {
|
||||
// The only thing we care about copying from the non-fully-defined type
|
||||
// right now is the global flag.
|
||||
|
||||
if (is_fully_defined()) {
|
||||
if (is_fully_defined() &&
|
||||
(!other.is_fully_defined() || (other._flags & F_global) == 0)) {
|
||||
// We win.
|
||||
_flags |= (other._flags & F_global);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user