From 2060e6616cb39362cddc3c57a94292896f9f4525 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Wed, 4 May 2016 15:04:12 +0200 Subject: Add missing Vector2Array case to Variant::operator String() - Correcly display Vector2Array default arguments in the documentation --- core/variant.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core') 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 vec = operator DVector(); + String str; + for(int i=0;i0) + str+=", "; + str=str+Variant( vec[i] ); + } + return str; + } break; case VECTOR3_ARRAY: { DVector vec = operator DVector(); -- cgit v1.2.3