summaryrefslogtreecommitdiff
path: root/core/variant.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-05 09:27:14 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-05 09:27:14 +0200
commit99e31e10053a96e794ff0c3391b0c5054f7ed0e8 (patch)
treee6d346c629fc490d764601f3fa70ebfbf4e1298b /core/variant.cpp
parentf909634832a72cfc669fd1b6281c8a960ea3d40f (diff)
parent1e752c01203b2560ef3ed28993aac9c98c053cb8 (diff)
Merge pull request #4547 from neikeq/pr-wrong-debug-methods
Fix wrong return and argument types in documentation
Diffstat (limited to 'core/variant.cpp')
-rw-r--r--core/variant.cpp12
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>();