From ab17f197f065348942b54bdde5f38b07fc0b6c0d Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Wed, 7 Dec 2022 21:50:28 +0300 Subject: [PATCH] Make custom visual shader nodes automatically updates from script --- .../plugins/visual_shader_editor_plugin.cpp | 293 ++++++++++++++---- editor/plugins/visual_shader_editor_plugin.h | 11 +- 2 files changed, 250 insertions(+), 54 deletions(-) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 9990d5c06f4..cf811067c94 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -269,6 +269,19 @@ void VisualShaderGraphPlugin::set_expression(VisualShader::Type p_type, int p_no links[p_node_id].expression_edit->set_text(p_expression); } +Ref