diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-05-04 15:04:12 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-05-04 15:16:24 +0200 |
commit | 2060e6616cb39362cddc3c57a94292896f9f4525 (patch) | |
tree | d1a9ee5aa3b79a63348f12520db220082b4298a9 /core | |
parent | 479cfb1d361bcf1863d69a464ed404efa7fe3b40 (diff) |
Add missing Vector2Array case to Variant::operator String()
- Correcly display Vector2Array default arguments in the documentation
Diffstat (limited to 'core')
-rw-r--r-- | core/variant.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/variant.cpp b/core/variant.cpp index 527a0d238f..ea5a378ad0 100644 --- a/core/variant.cpp +++ b/core/variant.cpp @@ -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>(); |