diff options
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>(); |