mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
*** empty log message ***
This commit is contained in:
parent
08c0c9fea2
commit
8fd084e497
@ -138,7 +138,12 @@ DCField *DCClass::
|
||||
get_inherited_field(int n) {
|
||||
if (!_parents.empty()) {
|
||||
// This won't work for multiple dclass inheritance.
|
||||
n -= _parents.front()->get_num_inherited_fields();
|
||||
int psize = _parents.front()->get_num_inherited_fields();
|
||||
if (n < psize) {
|
||||
return _parents.front()->get_inherited_field(n);
|
||||
}
|
||||
|
||||
n -= psize;
|
||||
}
|
||||
return get_field(n);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user