From 998b48f722eee84fb375572efd00af60d0baee02 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Wed, 4 Jan 2023 14:30:20 +0300 Subject: [PATCH] Add handling of custom visual shader nodes from GDExtension --- .../plugins/visual_shader_editor_plugin.cpp | 149 ++++++++++-------- editor/plugins/visual_shader_editor_plugin.h | 4 +- scene/resources/visual_shader.cpp | 30 ++++ scene/resources/visual_shader.h | 6 + 4 files changed, 124 insertions(+), 65 deletions(-) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index b74324ff297..754533ab318 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -1209,13 +1209,19 @@ void VisualShaderEditor::clear_custom_types() { } } -void VisualShaderEditor::add_custom_type(const String &p_name, const Ref