mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix typedef array parameters
This commit is contained in:
parent
9e3f213c05
commit
5acbeb698e
@ -166,6 +166,12 @@ get_array_size() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
DCParameter *DCArrayParameter::
|
||||
append_array_specification(const DCUnsignedIntRange &size) {
|
||||
if (get_typedef() != (DCTypedef *)NULL) {
|
||||
// If this was a typedef, wrap it directly.
|
||||
return new DCArrayParameter(this, size);
|
||||
}
|
||||
|
||||
// Otherwise, the brackets get applied to the inner type.
|
||||
_element_type = _element_type->append_array_specification(size);
|
||||
return this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user