From 4a85f4cafe00bcd81b21db7530d28b3c80c7b5aa Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Fri, 15 Jan 2021 21:10:32 +0300 Subject: Fix replaced visual shader nodes updating --- scene/resources/visual_shader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 7b2add12a9..2b28aa25cf 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -496,6 +496,7 @@ void VisualShader::replace_node(Type p_type, int p_id, const StringName &p_new_c return; } VisualShaderNode *vsn = Object::cast_to(ClassDB::instance(p_new_class)); + vsn->connect("changed", callable_mp(this, &VisualShader::_queue_update)); g->nodes[p_id].node = Ref(vsn); _queue_update(); -- cgit v1.2.3