diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2021-01-15 21:10:32 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2021-01-15 21:10:32 +0300 |
commit | 4a85f4cafe00bcd81b21db7530d28b3c80c7b5aa (patch) | |
tree | b97b21901feeb95ede983f88ef520a5756985b93 | |
parent | c7fb7674c8f9163a717beaa922cd7e6c8aeb77b6 (diff) |
Fix replaced visual shader nodes updating
-rw-r--r-- | scene/resources/visual_shader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<VisualShaderNode>(ClassDB::instance(p_new_class)); + vsn->connect("changed", callable_mp(this, &VisualShader::_queue_update)); g->nodes[p_id].node = Ref<VisualShaderNode>(vsn); _queue_update(); |