summaryrefslogtreecommitdiffstats
path: root/editor/plugins/visual_shader_editor_plugin.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-09-10 22:02:44 +0200
committerGitHub <noreply@github.com>2020-09-10 22:02:44 +0200
commitbeb9ebcda00ac32a1dc8ec338aa61d7f0b03edc5 (patch)
tree7ab5b8369ef1e72dc698564778597ddc38362666 /editor/plugins/visual_shader_editor_plugin.h
parentd782405bcfa03b63de78927ce077f495ae285d11 (diff)
parentc0da97d29cbabcce261ddc948df099f0ecc6ee47 (diff)
downloadredot-engine-beb9ebcda00ac32a1dc8ec338aa61d7f0b03edc5.tar.gz
Merge pull request #40973 from Paulb23/code_edit
Add CodeEdit and TextEdit gutter system
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.h')
-rw-r--r--editor/plugins/visual_shader_editor_plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.h b/editor/plugins/visual_shader_editor_plugin.h
index 59d4765ec9..125687c424 100644
--- a/editor/plugins/visual_shader_editor_plugin.h
+++ b/editor/plugins/visual_shader_editor_plugin.h
@@ -115,7 +115,7 @@ class VisualShaderEditor : public VBoxContainer {
bool pending_update_preview;
bool shader_error;
VBoxContainer *preview_vbox;
- TextEdit *preview_text;
+ CodeEdit *preview_text;
Ref<CodeHighlighter> syntax_highlighter;
Label *error_text;
@@ -304,7 +304,7 @@ class VisualShaderEditor : public VBoxContainer {
void _change_output_port_type(int p_type, int p_node, int p_port);
void _change_output_port_name(const String &p_text, Object *line_edit, int p_node, int p_port);
- void _expression_focus_out(Object *text_edit, int p_node);
+ void _expression_focus_out(Object *code_edit, int p_node);
void _set_node_size(int p_type, int p_node, const Size2 &p_size);
void _node_resized(const Vector2 &p_new_size, int p_type, int p_node);