Add missing Vector2Array case to Variant::operator String()
- Correcly display Vector2Array default arguments in the documentation
This commit is contained in:
parent
479cfb1d36
commit
2060e6616c
2 changed files with 13 additions and 0 deletions
|
|
@ -1556,6 +1556,18 @@ Variant::operator String() const {
|
|||
|
||||
return str;
|
||||
} break;
|
||||
case VECTOR2_ARRAY: {
|
||||
|
||||
DVector<Vector2> vec = operator DVector<Vector2>();
|
||||
String str;
|
||||
for(int i=0;i<vec.size();i++) {
|
||||
|
||||
if (i>0)
|
||||
str+=", ";
|
||||
str=str+Variant( vec[i] );
|
||||
}
|
||||
return str;
|
||||
} break;
|
||||
case VECTOR3_ARRAY: {
|
||||
|
||||
DVector<Vector3> vec = operator DVector<Vector3>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue