diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-22 22:41:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-22 22:41:33 +0200 |
commit | 7862e3c4de27565693e75e97bfcd09b84439abaf (patch) | |
tree | f3bb8a670cacae45606a66bc765f78d6bb28e6e2 | |
parent | 9f28803927330654cdb09f48467b481c85209ea8 (diff) | |
parent | 94fb3f666ccea71c4623335f3797c249ff1fa83c (diff) |
Merge pull request #32976 from DavidSichma/type_eval
Fixed evaluation for types
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index ecb2354aa1..5bccb36252 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -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); } |