From 33e9fce1bb31cad8ae9632e2382f4c156d9842c3 Mon Sep 17 00:00:00 2001 From: Yuri Roubinski Date: Fri, 9 Aug 2019 22:51:48 +0300 Subject: Plugin support for visual shaders --- editor/plugins/visual_shader_editor_plugin.cpp | 116 +++++++++++++++++++------ editor/plugins/visual_shader_editor_plugin.h | 8 +- 2 files changed, 95 insertions(+), 29 deletions(-) (limited to 'editor/plugins') diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 863cf75a93..e193e237de 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -79,6 +79,7 @@ void VisualShaderEditor::edit(VisualShader *p_visual_shader) { } else { if (changed) { // to avoid tree collapse _clear_buffer(); + _update_custom_nodes(); _update_options_menu(); } _update_graph(); @@ -95,31 +96,36 @@ void VisualShaderEditor::remove_plugin(const Ref &p_plug plugins.erase(p_plugin); } -void VisualShaderEditor::add_custom_type(const String &p_name, const String &p_category, const Ref