Merge pull request #32976 from DavidSichma/type_eval

Fixed evaluation for types
This commit is contained in:
Rémi Verschelde 2019-10-22 22:41:33 +02:00 committed by GitHub
commit 7862e3c4de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1186,7 +1186,7 @@ void ScriptTextEditor::_edit_option(int p_op) {
if (expression.parse(line) == OK) {
Variant result = expression.execute(Array(), Variant(), false);
if (expression.get_error_text() == "") {
results.append(whitespace + (String)result);
results.append(whitespace + result.get_construct_string());
} else {
results.append(line);
}