diff options
| author | David Sichma <sichmada@gmail.com> | 2019-10-22 09:42:46 +0200 |
|---|---|---|
| committer | David Sichma <sichmada@gmail.com> | 2019-10-22 09:42:46 +0200 |
| commit | 94fb3f666ccea71c4623335f3797c249ff1fa83c (patch) | |
| tree | 6281750de2f19469ffe4c4689875f208c396fdf1 | |
| parent | 3564547208030264a28cc55232992aab3cbdad94 (diff) | |
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); } |