From 2150855fafd76f881bf5b1389d7740216981aaf0 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Wed, 27 Jul 2016 17:59:42 +0300 Subject: [PATCH] Fix reading of empty StringArray-s in .tscn Closes #5912 --- core/variant_parser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index dce873a306f..023605a952e 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -1233,7 +1233,9 @@ Error VariantParser::parse_value(Token& token,Variant &value,Stream *p_stream,in } get_token(p_stream,token,line,r_err_str); - if (token.type!=TK_STRING) { + if (token.type==TK_PARENTHESIS_CLOSE) { + break; + } else if (token.type!=TK_STRING) { r_err_str="Expected string"; return ERR_PARSE_ERROR; }