diff options
| author | Paulb23 <p_batty@hotmail.co.uk> | 2021-06-28 17:14:44 +0100 |
|---|---|---|
| committer | Paulb23 <p_batty@hotmail.co.uk> | 2021-08-01 12:06:33 +0100 |
| commit | 12f00535555f8ac94a3da2a561f51357502e7a6d (patch) | |
| tree | e67a80d7ce219f36eff952cd4b777744770b6b43 /editor/plugins/visual_shader_editor_plugin.cpp | |
| parent | 80143c970136d72819be39c1eaaf800ae89c2cca (diff) | |
| download | redot-engine-12f00535555f8ac94a3da2a561f51357502e7a6d.tar.gz | |
Move auto brace completion to CodeEdit
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index add75d47fd..07167ae199 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -921,6 +921,10 @@ void VisualShaderGraphPlugin::add_node(VisualShader::Type p_type, int p_id) { expression_box->add_comment_delimiter("/*", "*/", false); expression_box->add_comment_delimiter("//", "", true); + if (!expression_box->has_auto_brace_completion_open_key("/*")) { + expression_box->add_auto_brace_completion_pair("/*", "*/"); + } + expression_box->set_text(expression); expression_box->set_context_menu_enabled(false); expression_box->set_draw_line_numbers(true); |
