Fix reading of empty StringArray-s in .tscn

Closes #5912
This commit is contained in:
Bojidar Marinov 2016-07-27 17:59:42 +03:00
parent 542bd81e76
commit 2150855faf
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856

View file

@ -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); 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"; r_err_str="Expected string";
return ERR_PARSE_ERROR; return ERR_PARSE_ERROR;
} }