summaryrefslogtreecommitdiff
path: root/editor/plugins/visual_shader_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-12 15:30:12 +0200
committerGitHub <noreply@github.com>2021-08-12 15:30:12 +0200
commita695a6764eedc3f67fbc7796a78722d803d2c30f (patch)
treec794f12bb45722731db4a86e9fb5294c24a786e1 /editor/plugins/visual_shader_editor_plugin.cpp
parent975a63e6f78d98d67cf2753a9cb7b78f2999156d (diff)
parenta4606c2806c37d166dd57a87f70298d91a6d072b (diff)
Merge pull request #50371 from Paulb23/text_edit_cleanup
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp
index 038ce1467e..37a04a1844 100644
--- a/editor/plugins/visual_shader_editor_plugin.cpp
+++ b/editor/plugins/visual_shader_editor_plugin.cpp
@@ -3968,7 +3968,7 @@ VisualShaderEditor::VisualShaderEditor() {
preview_text->set_v_size_flags(Control::SIZE_EXPAND_FILL);
preview_text->set_syntax_highlighter(syntax_highlighter);
preview_text->set_draw_line_numbers(true);
- preview_text->set_readonly(true);
+ preview_text->set_editable(false);
error_panel = memnew(PanelContainer);
preview_vbox->add_child(error_panel);